-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
58 lines (49 loc) · 1.41 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="civ6" default="compile">
<property name="bin.dir" value="bin/"/>
<property name="src.dir" value="src/"/>
<property name="test.dir" value="test/"/>
<property name="lib.dir" value="lib/"/>
<path id="lib.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<path id="test.classpath">
<pathelement location="${bin.dir}"/>
<pathelement location="${test.dir}"/>
<path refid="lib.classpath"/>
</path>
<target name="prepare">
<delete includeemptydirs="true" failonerror="false">
<fileset dir="${bin.dir}"/>
</delete>
<mkdir dir="bin"/>
</target>
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}" destdir="${bin.dir}" debug="true" debuglevel="lines,source"/>
</target>
<target name="run">
<java fork="yes"
classname="civ.Window">
<classpath>
<pathelement path="${bin.dir}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
</target>
<target name="compile_test" >
<javac>
<src path="${test.dir}" />
<classpath refid="test.classpath"/>
</javac>
</target>
<target name="test" depends="compile_test">
<junit printsummary="no">
<classpath refid="test.classpath"/>
<formatter type="plain" usefile="false"/>
<batchtest fork="yes">
<fileset dir="${test.dir}" includes="*.class"/>
</batchtest>
</junit>
</target>
</project>