-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
55 lines (48 loc) · 1.7 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
<project name="connectfour" default="first">
<property environment="env" />
<target name="first">
<echo>os=${os}</echo>
<antcall target="${os}" />
</target>
<target name="clean">
<delete dir="target" quiet="true" />
</target>
<target name="compile">
<echo>${env.BUILD_NUMBER}</echo>
<mkdir dir="target/classes" />
<javac srcdir="src" destdir="target/classes" />
</target>
<target name="sleep">
<echo message="Sleeping for a while si you can see the build in the new dashboard" />
<sleep seconds="30" />
</target>
<target name="test" depends="compile">
<mkdir dir="target/test-classes" />
<javac srcdir="test" destdir="target/test-classes">
<classpath>
<pathelement location="target/classes" />
<pathelement location="lib/junit.jar" />
</classpath>
</javac>
<mkdir dir="target/test-results" />
<junit haltonfailure="no" printsummary="on">
<classpath>
<pathelement location="target/classes"/>
<pathelement location="lib/junit.jar"/>
<pathelement location="target/test-classes"/>
</classpath>
<formatter type="brief" usefile="false" />
<formatter type="xnl" />
<batchtest todir="target/test-results">
<fileset dir="target/test-classes" includes="**/*Test.class" />
</batchtest>
</junit>
</target>
<target name="windows" depends="clean, compile, sleep, test, jar">
</target>
<target name="linux">
<echo> calling build on linux machine </echo>
<sleep seconds="30" />
<fail msg="fail test of misconfiguration project" />
</target>
</project>