-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
49 lines (48 loc) · 1.79 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<project name="turbo-spork" default="jar" basedir=".">
<property name="src" location="src"/>
<property name="classes" location="build/classes"/>
<property name="testClasses" location="build/test/classes"/>
<property name="dist" location="build/dist"/>
<path id="testPath">
<fileset dir="lib" includes="*.jar"/>
<fileset dir="test/lib" includes="*.jar"/>
<pathelement path="${classes}"/>
</path>
<target name="compile">
<mkdir dir="${classes}"/>
<javac srcdir="${src}" destdir="${classes}" target="1.7" source="1.7">
<classpath>
<fileset dir="lib" includes="*.jar"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/turbo-spork.jar" basedir="${classes}" manifest="MANIFEST.MF">
<zipgroupfileset dir="lib" includes="*.jar"/>
</jar>
</target>
<target name="basejar" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/turbo-spork-base.jar" basedir="${classes}" excludes="**/gui/">
<zipgroupfileset dir="lib" includes="*.jar"/>
</jar>
</target>
<target name="compileTest" depends="compile">
<mkdir dir="${testClasses}"/>
<javac srcdir="test/src" destdir="${testClasses}">
<classpath refid="testPath"/>
</javac>
</target>
<target name="test" depends="compileTest">
<junit printsummary="yes">
<classpath refid="testPath"/>
<classpath>
<pathelement path="${testClasses}"/>
</classpath>
<batchtest>
<fileset dir="test/src" includes="**/*Test.java"/>
</batchtest>
</junit>
</target>
</project>