-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
80 lines (74 loc) · 2.76 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE project>
<project name="JLETests" default="pack" basedir=".">
<property name="JUNIT" value="/usr/share/java" />
<property name="SMACK" value="/home/jle/binaries" />
<target name="compile-test" depends="compile">
<mkdir dir="test-bin" />
<javac includeantruntime="false" srcdir="test" destdir="test-bin" debug="on" debuglevel="lines">
<classpath refid="classpath.test" />
<classpath>
<pathelement location="bin"/>
</classpath>
</javac>
</target>
<target name="compile">
<mkdir dir="bin" />
<javac includeantruntime="false" srcdir="src:release-src" destdir="bin">
<classpath refid="classpath.base" />
</javac>
</target>
<target name="compile-debug">
<mkdir dir="debug-bin" />
<javac includeantruntime="false" srcdir="src:debug-src" destdir="debug-bin" debug="on" debuglevel="lines,vars">
<classpath refid="classpath.base" />
</javac>
</target>
<path id="classpath.base">
<pathelement location="${SMACK}/smack.jar" />
<pathelement location="${SMACK}/smackx.jar" />
</path>
<path id="classpath.test">
<pathelement location="${JUNIT}/junit4.jar" />
<pathelement location="${JUNIT}/hamcrest-all.jar" />
<!--<pathelement location="C:\\eclipse-helios\\plugins\\org.junit_4.8.1.v4_8_1_v20100427-1100\\junit.jar" />
<pathelement location="C:\\eclipse-helios\\plugins\\org.hamcrest.core_1.1.0.v20090501071000.jar" />-->
<pathelement location="test-bin" />
<path refid="classpath.base" />
</path>
<target name="test" depends="pack,compile-test">
<mkdir dir="tests" />
<junit>
<classpath refid="classpath.test" />
<classpath>
<pathelement location="JLENetHistory.jar" />
</classpath>
<formatter type="xml" />
<test name="de.jlenet.desktop.history.TestStoreAndLoad" todir="tests" />
<test name="de.jlenet.desktop.history.TestUtils" todir="tests" />
</junit>
<delete dir="testHistory" />
</target>
<target name="test-debug" depends="pack-debug,compile-test">
<mkdir dir="debugTests" />
<junit>
<classpath refid="classpath.test" />
<classpath>
<pathelement location="JLENetHistory-debug.jar" />
</classpath>
<formatter type="xml" />
<test name="de.jlenet.desktop.history.TestStoreAndLoad" todir="debugTests" />
<test name="de.jlenet.desktop.history.TestUtils" todir="debugTests" />
</junit>
<replace dir="debugTests" token="de.jlenet.desktop.history" value="de.jlenet.desktop.history-debug"/>
<delete dir="testHistory" />
</target>
<target name="pack" depends="compile">
<jar destfile="JLENetHistory.jar" basedir="bin" />
</target>
<target name="pack-debug" depends="compile-debug">
<jar destfile="JLENetHistory-debug.jar">
<fileset dir="debug-bin" />
<fileset dir="src" />
</jar>
</target>
</project>