Switched to ant for building
[jirac.git] / build.xml
blob49ffce8f7b58cea69c4be2faa0e2fb8e6de8a7b1
1 <project name="jirac" default="test">
2   <target name="setup">
3     <mkdir dir="out" />
4     <mkdir dir="out/doc" />
5   </target>
6   <target name="doc" depends="setup">
7     <javadoc sourcepath="." destdir="out/doc" />
8   </target>
9   <target name="clean">
10     <delete dir="out" />
11     <delete>
12       <fileset dir=".">
13         <include name="**/*.drc" />
14         <include name="**/*.jar" />
15       </fileset>
16     </delete>
17   </target>
18   <target name="build" depends="setup">
19     <javac srcdir="." destdir="out" includes="org/**" />
20   </target>
21   <target name="jar" depends="build">
22     <jar basedir="out" includes="org/**" destfile="jirac.jar" />
23   </target>
24   <target name="test" depends="build">
25     <javac srcdir="tst" destdir="out" />
26     <copy todir="out">
27       <fileset dir="." includes="**/*.drc" />
28     </copy>
29     <java classname="DecoderTest" classpath="out" fork="true" />
30   </target>
31 </project>