3 <project name="KJAS" basedir="." default="all">
5 <property file="build.properties"/>
8 <mkdir dir="${build}" />
11 <target name="compile" depends="init">
12 <javac srcdir="${src}" destdir="${build}" includes="${includes}" excludes="${excludes}" deprecation="true" debug="${debug}" debuglevel="${debuglevel}" source="1.3" target="1.2"/>
15 <target name="images" depends="init">
16 <mkdir dir="${build}/images"/>
17 <copy todir="${build}/images">
18 <fileset dir="${images}">
19 <include name="*gif"/>
24 <target name="jar" depends="init,images,compile">
25 <jar jarfile="${jar}.jar" compress="false" basedir="${build}" />
28 <target name="all" depends="jar" description="Build everything.">
29 <echo message="Application built." />
32 <target name="clean" depends="init" description="Clean all build products.">
33 <delete file="${jar}.jar" />
34 <delete dir="${build}" />
37 <target name="test-init" depends="">
38 <mkdir dir="tests/classes" />
41 <target name="test" depends="test-init" description="Build the test applets">
42 <javac srcdir="tests" destdir="tests/classes" debug="true" deprecation="true" source="1.3" target="1.2"/>
45 <target name="test-clean" depends="">
46 <delete dir="tests/classes" />