forked from darealmc/some_java
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
Latest commit
52 lines (45 loc) · 1.44 KB
/
Copy pathbuild.xml
File metadata and controls
52 lines (45 loc) · 1.44 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
44
45
46
47
48
49
50
51
52
<project>
<propertyname="lib.dir"value="/usr/share/ant/lib" />
<pathid="classpath">
<pathelementlocation="${lib.dir}/ant-junit4.jar"/>
<pathelementlocation="${lib.dir}/ant-junit"/>
</path>
<targetname="clean">
<deletedir="build"/>
</target>
<targetname="tcomp">
<javacsrcdir="test"destdir="test"/>
</target>
<targetname="compile">
<mkdirdir="build/classes"/>
<javacsrcdir="src"destdir="build/classes"/>
</target>
<targetname="tjar"depends="tcomp">
<jardestfile="test/hello.jar"basedir="test/hello">
<manifest>
<attributename="Test-Class"value="hellotest"/>
</manifest>
</jar>
</target>
<targetname="jar">
<mkdirdir="build/jar"/>
<jardestfile="build/jar/hello.jar"basedir="build/classes">
<manifest>
<attributename="Main-Class"value="hello"/>
</manifest>
</jar>
</target>
<targetname="run">
<javajar="build/jar/hello.jar"fork="true"/>
</target>
<targetname="junit"depends="tjar">
<junitprintsummary="yes">
<classpathrefid="classpath" />
<classpathlocation="test"/>
<testname="hellotest"haltonfailure="no"todir="test/results">
<formattertype="plain"/>
<formattertype="xml"/>
</test>
</junit>
</target>
</project>