-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
56 lines (52 loc) · 1.28 KB
/
build.xml
File metadata and controls
56 lines (52 loc) · 1.28 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
53
54
55
56
<?xml version="1.0"?>
<project name="JumpVM" default="jar" basedir=".">
<target name="clean">
<delete dir="bin" />
<delete file="JumpVM.jar" />
</target>
<target name="compile">
<mkdir dir="bin" />
<javac
srcdir="src"
destdir="bin"
includeantruntime="false"
debug="true"
debuglevel="lines,vars,source"
/>
<copy todir="bin">
<fileset dir="res" includes="**"/>
</copy>
</target>
<target name="jar" depends="compile">
<jar destfile="JumpVM.jar" basedir="bin">
<manifest>
<attribute name="Main-Class" value="jumpvm.Main" />
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="JumpVM.jar" fork="true" spawn="true"/>
</target>
<target name="test" depends="compile">
<javac
srcdir="test"
destdir="bin"
includeantruntime="false"
debug="true"
debuglevel="lines,vars,source"
>
<classpath>
<pathelement location="/usr/share/java/junit4.jar"/>
</classpath>
</javac>
<junit printsummary="yes" haltonfailure="no" fork="true">
<classpath>
<pathelement location="/usr/share/java/junit4.jar"/>
<pathelement location="/usr/share/java/ant-junit4.jar"/>
<pathelement location="bin"/>
</classpath>
<test name="jumpvm.JumpVMTest" />
<formatter type="xml"/>
</junit>
</target>
</project>