-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
26 lines (26 loc) · 818 Bytes
/
build.xml
File metadata and controls
26 lines (26 loc) · 818 Bytes
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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="AntDemo" default="test" basedir=".">
<property name="src" value="src"/>
<property name="dest" value="classes"/>
<property name="helloant_jar" value="helloant.jar"/>
<target name="init">
<mkdir dir="${dest}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${dest}"/>
</target>
<target name="build" depends="compile">
<jar jarfile="${helloant_jar}" basedir="${dest}"/>
</target>
<target name="test" depends="build">
<java classname="hello" classpath="${helloant_jar}"/>
</target>
<target name="clean">
<delete dir="${dest}" />
<delete file="${helloant_jar}" />
</target>
<target name="rerun" depends="clean,test">
<ant target="clean" />
<ant target="test" />
</target>
</project>