-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
58 lines (50 loc) · 1.99 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
<project name="mogade-java" default="debug" basedir=".">
<property name="jarFileName" location="out/production/mogade-java.jar"/>
<property name="srcJarFileName" location="out/production/mogade-java-src.jar"/>
<property name="outputPath" location="out/production/mogade-java"/>
<property name="srcPath" location="src"/>
<target name="build">
<ant antfile="mogade-java.xml" />
</target>
<target name="package_jars" depends="build">
<jar destfile="${jarFileName}">
<fileset dir="${outputPath}" />
</jar>
<jar destfile="${srcJarFileName}">
<fileset dir="${outputPath}" />
<fileset dir="${srcPath}" />
</jar>
</target>
<target name="test-local" depends="build">
<junit haltonfailure="yes">
<classpath>
<pathelement path="${outputPath}" />
<pathelement path="out/test/mogade-java" />
<pathelement location="lib/gson-1.5.jar" />
<pathelement location="tests/lib/junit-4.8.2.jar" />
</classpath>
<formatter type="brief" usefile="false" />
<batchtest>
<fileset dir="out/test/mogade-java">
<include name="**/Test*.class" />
<exclude name="**/*Live*.class" />
</fileset>
</batchtest>
</junit>
</target>
<target name="test-live" depends="build">
<junit haltonfailure="yes">
<classpath>
<pathelement path="${outputPath}" />
<pathelement path="out/test/mogade-java" />
<pathelement location="lib/gson-1.5.jar" />
<pathelement location="tests/lib/junit-4.8.2.jar" />
</classpath>
<formatter type="brief" usefile="false" />
<batchtest>
<fileset dir="out/test/mogade-java" includes="**/Test*Live*.class" />
</batchtest>
</junit>
</target>
<target name="test-all" depends="test-local, test-live" />
</project>