Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 129 lines (90 sloc) 3.71 kB
<project name="NetSpade Compression Filter" default="compile" basedir=".">
<!-- Use Checkstyle -->
<taskdef resource="checkstyletask.properties"/>
<!-- File and Directory Names -->
<property name="app.name" value="netspade-compression-filter"/>
<property name="app.version" value="1.0"/>
<property name="lib.home" value="lib"/>
<property name="src.home" value="src"/>
<property name="build.home" value="build"/>
<property name="dist.home" value="dist"/>
<!-- Compilation Control Options -->
<property name="compile.debug" value="false"/>
<property name="compile.deprecation" value="true"/>
<property name="compile.optimize" value="false"/>
<!-- All Target -->
<target name="all" depends="clean,compile"
description="Clean build and dist, then compile"/>
<!-- Clean Target -->
<target name="clean"
description="Delete old build and dist directories">
<delete dir="${build.home}"/>
<delete dir="${dist.home}"/>
</target>
<!-- Compile Target -->
<target name="compile" depends="prepare"
description="Compile Java sources">
<!-- Compile Java classes as necessary -->
<mkdir dir="${build.home}"/>
<javac srcdir="${src.home}"
destdir="${build.home}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}"/>
<!-- Copy associated resource files -->
<copy todir="${build.home}">
<fileset dir="${src.home}" includes="**/*.properties"/>
</copy>
</target>
<!-- Checkstyle Target -->
<target name="checkstyle" depends="compile"
description="Report code convention violations">
<checkstyle config="checkstyle.xml">
<fileset dir="${src.home}" includes="**/*.java"/>
</checkstyle>
</target>
<target name="jdepend" depends="compile">
<jdepend format="xml" outputfile="docs/jdepend-report.xml">
<sourcespath>
<pathelement location="${build.home}" />
</sourcespath>
<classpath location="${build.home}" />
</jdepend>
<style basedir="docs" destdir="docs"
includes="jdepend-report.xml"
style="${ant.home}/etc/jdepend.xsl" />
</target>
<!-- Dist Target -->
<target name="dist" depends="compile"
description="Create binary distribution">
<!-- Copy documentation subdirectory -->
<copy todir="${dist.home}/docs">
<fileset dir="docs"/>
</copy>
<!-- Create application JAR file -->
<jar jarfile="${dist.home}/${app.name}.jar"
basedir="${build.home}"/>
<!-- Copy additional files to ${dist.home} as necessary -->
</target>
<!-- Javadoc Target -->
<target
name="javadoc"
depends="compile"
description="Create Javadoc API documentation">
<mkdir dir="${dist.home}/docs/api"/>
<javadoc destdir="${dist.home}/docs/api">
<Header>
<![CDATA[<a href="http://www.netspade.com">NetSpade</a>]]>
</Header>
<link href="http://java.sun.com/j2se/1.4.1/docs/api/"/>
<link href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/"/>
<fileset dir="${src.home}" includes="**/*.java"/>
</javadoc>
</target>
<!-- Prepare Target -->
<target name="prepare">
<!-- Create build directory -->
<mkdir dir="${build.home}"/>
<!-- Copy static files from external dependencies as needed -->
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.