-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·39 lines (31 loc) · 1017 Bytes
/
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
<project default="compile">
<path id="project.class.path">
<pathelement location="build"/>
<pathelement location="lib/junit-4.8.2.jar"/>
</path>
<target name="compile" description="compile my code">
<mkdir dir="build" />
<javac srcdir="src" destdir="build"
includeantruntime="false"
debug="true" debuglevel="lines,vars,source">
<classpath refid="project.class.path" />
</javac>
</target>
<target name="run" description="run the program">
<java classname="Student">
<classpath refid="project.class.path" />
</java>
</target>
<target name="clean">
<delete dir="build"/>
</target>
<target name="test" depends="compile" description="run junit tests">
<junit haltonerror="no" haltonfailure="no">
<classpath refid="project.class.path" />
<batchtest fork="yes">
<fileset dir="src"><include name="**/*Test.java"/></fileset>
</batchtest>
<formatter type="plain" usefile="false" />
</junit>
</target>
</project>