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