/
build.xml
43 lines (37 loc) · 1.17 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
<?xml version="1.0"?>
<project name="Zelfa" default="test" basedir=".">
<property name="src.dir" location="Jeux/src" />
<property name="lib.dir" location="Jeux/lib" />
<property name="build.dir" location="Jeux/bin" />
<property name="test.dir" location="test-report" />
<path id="build.classpath">
<pathelement location="${build.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${test.dir}" />
</target>
<target name="makedirs">
<mkdir dir="${build.dir}" />
<mkdir dir="${test.dir}" />
</target>
<target name="compile" depends="clean, makedirs">
<javac srcdir="${src.dir}" destdir="${build.dir}">
<classpath refid="build.classpath" />
</javac>
</target>
<target name="test" depends="compile">
<junit printsummary="on" haltonfailure="yes">
<classpath refid="build.classpath" />
<formatter type="plain" />
<batchtest todir="${test.dir}">
<fileset dir="${src.dir}">
<include name="**/*Test*.java" />
</fileset>
</batchtest>
</junit>
</target>
</project>