blob: 31133ca85828c5787087d27cffc15339caf16529 [file] [log] [blame]
crazybobleeefdb6f32007-02-26 02:54:11 +00001<?xml version="1.0"?>
2
3<project name="common">
4
5 <property file="build.properties"/>
kevinb9nbca22512007-04-20 14:47:05 +00006
7 <!-- can be overridden at the command line with -Dversion=
8 or in IDEA, in the ant properties dialog -->
9 <property name="version" value="snapshot"/>
crazybobleef7390152007-03-02 23:44:34 +000010
crazybobleeefdb6f32007-02-26 02:54:11 +000011 <target name="compile" description="Compile Java source.">
12 <mkdir dir="${build.dir}/classes"/>
13 <javac srcdir="${src.dir}"
14 debug="on"
15 destdir="${build.dir}/classes">
16 <classpath refid="compile.classpath"/>
17 </javac>
18 <copy toDir="${build.dir}/classes">
19 <fileset dir="${src.dir}" excludes="**/*.java"/>
20 </copy>
21 </target>
22
23 <target name="test.compile"
24 depends="compile"
25 description="Compile test source.">
26 <mkdir dir="${build.dir}/test"/>
27 <javac srcdir="${test.dir}"
28 debug="on"
29 destdir="${build.dir}/test">
30 <classpath path="${build.dir}/classes"/>
31 <classpath refid="compile.classpath"/>
32 </javac>
33 <copy toDir="${build.dir}/test">
34 <fileset dir="${test.dir}" excludes="**/*.java"/>
35 </copy>
36 </target>
37
38 <target name="test"
39 depends="test.compile"
40 description="Execute JUnit tests.">
41 <java fork="true"
42 classname="junit.textui.TestRunner"
43 failonerror="true"
44 taskname="junit">
45 <classpath>
46 <pathelement location="${build.dir}/test"/>
47 <pathelement location="${build.dir}/classes"/>
48 <path refid="compile.classpath"/>
49 </classpath>
50 <arg value="${test.class}"/>
51 </java>
52 </target>
53
54 <target name="clean"
55 description="Remove generated files.">
56 <delete dir="${build.dir}"/>
57 </target>
58
59</project>