-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
31 lines (31 loc) · 1.09 KB
/
build.xml
File metadata and controls
31 lines (31 loc) · 1.09 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="a2-comp3702" default="run" basedir=".">
<property name="src" value="src"></property>
<property name="dest" value="classes"/>
<property name="a2-comp3702" value="a2-comp3702.jar"></property>
<target name="init">
<mkdir dir="${dest}"/>
</target>
<target name="compile" depends="init" >
<javac srcdir="${src}" destdir="${dest}"></javac>
</target>
<target name="build" depends="compile">
<jar jarfile="${a2-comp3702}" basedir="${dest}">
<manifest>
<attribute name="Main-Class" value="problem.Main"/>
</manifest>
</jar>
</target>
<target name="run" depends="build">
<java classname="problem.Main" classpath="${a2-comp3702}"></java>
</target>
<target name="clean">
<delete dir="${dest}"></delete>
<delete dir="out"></delete>
<delete file="${a2-comp3702}"></delete>
</target>
<target name="rerun" depends="clean,run">
<ant target="clean"></ant>
<ant target="run"></ant>
</target>
</project>