<project name="Ket" default="run" basedir=".">
<description>
An ant build script to Clean, document, build and package the Ket project.
</description>
<property name="src" location="src"/>
<property name="class" location="class"/>
<property name="javadoc" location="docs/javadoc"/>
<property name="data" location="data"/>
<property name="root" location="."/>
<property name="version" value="0.7.01"/>
<property name="includeantruntime" value="false"/>
<target name="init">
<tstamp/>
<mkdir dir="${class}"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}" destdir="${class}" includeantruntime="false" />
</target>
<target name="jar" depends="compile" description="Package the jar">
<jar jarfile="ket${version}.jar" manifest="${src}/manifest.mft">
<fileset dir="${class}" includes="**" />
<fileset dir="." includes="data/**" />
</jar>
</target>
<target name="run" depends="jar" description="Build and run the package">
<java jar="ket${version}.jar" fork="true" />
</target>
<target name="clean" description="Delete class files and javadoc">
<delete includeemptydirs="true">
<fileset dir="${class}" excludes=".gitignore" />
</delete>
<delete dir="${javadoc}"/>
</target>
<target name="document" description="Build the javadoc documentation in ${javadoc} from the source code">
<javadoc sourcepath="${src}" destdir="${javadoc}" />
</target>
</project>