PathPacker-java/build.xml

62 lines
2.0 KiB
XML

<project name="PathPacker" default="dist" basedir=".">
<description>
simple build file, for the PathPacker trie library.
http://github.com/vbatts/PathPacker/
</description>
<!-- set global properties for this build -->
<property name="src.dir" location="src/main"/>
<property name="build.dir" location="build"/>
<property name="dist.dir" location="dist"/>
<property name="doc.dir" location="doc"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build.dir}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src.dir} into ${build.dir} -->
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${build.dir}">
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="lib/bcprov-jdk16-1.46.jar"/>
<pathelement location="lib/log4j-1.2.15.jar"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Put everything in ${build.dir} into the find-hidden-beds-${DSTAMP}.jar file -->
<jar jarfile="${dist.dir}/PathPacker-${DSTAMP}.jar" basedir="${build.dir}">
<manifest>
<attribute name="Main-Class" value="com.hashbangbash.trie.App"/>
</manifest>
</jar>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<delete dir="${doc.dir}"/>
</target>
<!-- Generate javadocs for current project into ${doc.dir} -->
<target name="doc" depends="init" description="generate documentation">
<javadoc
sourcepath="${src.dir}"
destdir="${doc.dir}"
author="true"
version="true"
use="true"
private="true"
/>
</target>
</project>