-
Notifications
You must be signed in to change notification settings - Fork 2
/
jsuit3.xml
65 lines (48 loc) · 1.93 KB
/
jsuit3.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<project name ="AntLAB" default="all" basedir="M4/M4">
<target name="init">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build" />
<property name="jar.dir" value = "jar"/>
<property name="apidoc.dir" value="apidoc"/>
<property name="lib.dir" value="lib"/>
</target>
<target name="prepare" depends="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${apidoc.dir}"/>
</target>
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false">
<classpath>
<pathelement path="${java.class.path}"/>
<pathelement path = "${lib.dir}/resources.jar"/>
</classpath>
</javac>
</target>
<target name="javadoc" depends="prepare">
<javadoc sourcepath="${src.dir}" access="public" destdir="${apidoc.dir}">
<fileset dir = "${src.dir}" >
<include name="**/*.java"/>
</fileset>
<classpath>
<fileset dir = "${lib.dir}" includes="resources.jar"/>
</classpath>
</javadoc>
</target>
<target name="jar" depends="compile">
<jar destfile="${build.dir}/AntLabRun.jar" basedir="${build.dir}" excludes="AntLabRun.jar">
<manifest>
<attribute name="Main-Class" value="edu.gatech.oad.antlab.pkg1.AntLabMain"/>
<attribute name="Class-path" value="../${lib.dir}/resources.jar"/>
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${build.dir}/AntLabRun.jar" fork="true"/>
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}" />
<delete dir="${apidoc.dir}"/>
</target>
<target name="all" depends="javadoc, run" />
</project>