forked from akm0012/Jenkins_Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
45 lines (31 loc) · 1015 Bytes
/
build.xml
File metadata and controls
45 lines (31 loc) · 1015 Bytes
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
<project basedir=".">
<property name="src" location="src" />
<property name="build2" location="build" />
<target name="clean">
<delete dir="build" />
<mkdir dir="build" />
<delete dir="testReport" />
<mkdir dir="testReport" />
</target>
<!-- Define the classpath which includes the junit.jar and the classes after
compiling -->
<path id="junit.class.path">
<pathelement location="src/junit.jar" />
<pathelement location="src/hamcrest-core.jar" />
<pathelement path="${build2}" />
</path>
<target name="compile">
<javac srcdir="${src}" destdir="${build2}">
<classpath refid="junit.class.path" />
</javac>
</target>
<target name="test" depends="compile">
<junit printsummary="yes">
<classpath refid="junit.class.path" />
<formatter type="xml" />
<test name="Jenkins_Test.Module_A_Test" todir="testReport" />
<test name="Jenkins_Test.Module_B_Test" todir="testReport" />
</junit>
</target>
<target name="main" depends="clean,compile,test" />
</project>