-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTestBuild.xml
More file actions
43 lines (37 loc) · 1.25 KB
/
Copy pathTestBuild.xml
File metadata and controls
43 lines (37 loc) · 1.25 KB
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
<project>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes"/>
</target>
<target name="jar">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/HelloWorld.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="HelloWorld"/>
</manifest>
</jar>
</target>
<target name="run">
<java jar="build/jar/HelloWorld.jar" fork="true"/>
<formatter type="xml"/>
</target>
<target name="all" depends="compile-test">
<mkdir dir="${report.data.dir}"/>
<mkdir dir="${report.dir}"/>
<junit fork="no" haltonfailure="no" showoutput="yes" printsummary="true">
<test name="HelloWorldTest" />
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<classpath refid="classpath" />
</junit>
<junitreport todir="${report.dir}">
<fileset dir="${report.data.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${report.dir}"/>
</junitreport>
</target>
</project>