Changed Graph implementation, renamed some methods
[ailab2.git] / build.xml
blob3103ad9895da9707f874561dd1ef72a016ef6e27
1 <?xml version="1.0" encoding="utf-8"?>
2 <project name="AiLab2" default="compile" basedir=".">
3   <property name="build.dir" location="bin"/>
4   <property name="build.prod.dir" location="${build.dir}/prod"/>
5   <property name="build.test.dir" location="${build.dir}/test"/>
6   <property name="doc.dir" location="doc"/>
7   <property name="src.dir" location="src"/>
8   <property name="lib.dir" location="lib"/>
9   <property name="test.dir" location="test"/>
10   <property name="index.dir" location="index"/>
11   <path id="project.classpath">
12     <pathelement location="${build.prod.dir}" />
13     <pathelement location="${build.test.dir}" />
14     <fileset dir="${lib.dir}">
15       <include name="*.jar"/>
16     </fileset>
17   </path>
19   <target name="prepare">
20     <mkdir dir="${build.prod.dir}"/>
21     <mkdir dir="${build.test.dir}"/>
22   </target>
24   <target name="compile" depends="prepare">
25     <javac srcdir="${src.dir}" destdir="${build.prod.dir}">
26       <classpath refid="project.classpath" />
27     </javac>
28   </target>
30   <target name="compile-tests" depends="compile">
31     <javac srcdir="${test.dir}" destdir="${build.test.dir}">
32       <classpath refid="project.classpath" />
33     </javac>
34   </target>
36   <target name="test" depends="compile-tests">
37     <junit haltonfailure="false">
38       <classpath refid="project.classpath" />
39       <formatter type="plain" usefile="false" />
40       <batchtest>
41         <fileset dir="${build.test.dir}"
42                  includes="**/*Test.class" />
43       </batchtest>
44       <sysproperty key="doc.dir" value="${doc.dir}" />
45       <sysproperty key="index.dir" value="${index.dir}" />
46     </junit>
47   </target>
49   <target name="javadoc" description="Generaties javadoc">
50     <javadoc destdir="${doc.dir}">
51       <fileset dir="${src.dir}/" includes="**/*.java"/>
52     </javadoc>
53   </target>
54 </project>