-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathajang6.xml
83 lines (67 loc) · 2.25 KB
/
ajang6.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<project name="m4" default="all" basedir="M4/M4">
<target name="init">
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="lib.dir" value="lib" />
<property name="javadoc.dir" value="apidoc" />
<property name="jar.name" value="AntLabRun.jar" />
</target>
<!-- prepare our folders and all that goodness -->
<target name="prepare" depends="init">
<mkdir dir="${build.dir}" />
<path id="master-classpath">
<fileset dir="${build.dir}" includes="**/*.class"/>
<fileset dir="${lib.dir}" includes="*.jar" />
<pathelement path="${java.class.path}" />
</path>
</target>
<!-- compile the code -->
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}"
destdir="${build.dir}"
includeantruntime="false">
<classpath refid="master-classpath" />
</javac>
</target>
<!-- create javadoc -->
<target name="javadoc" depends="compile">
<mkdir dir="${javadoc.dir}"/>
<javadoc
sourcepath="${src.dir}"
destdir="${javadoc.dir}"
classpathref="master-classpath"
author="true"
version="true"
use="true"
windowtitle="antlab API"
doctitle="<h1>ANTLAB</h1>"
/>
</target>
<!-- create a jar -->
<target name="jar" depends="javadoc">
<jar destfile="${jar.name}"
basedir="${build.dir}"
includes="**/*.class">
<manifest>
<attribute name="Main-Class" value="edu.gatech.oad.antlab.pkg1.AntLabMain" />
<attribute name="Class-Path" value="lib/resources.jar"/>
</manifest>
</jar>
</target>
<!-- run the application -->
<target name="run" depends="jar">
<java jar="${jar.name}"
classpathref="master-classpath"
fork="true"
/>
</target>
<!-- clean up all files generated by the build -->
<target name="clean" depends="init" >
<delete dir="${build.dir}" />
<delete dir="${javadoc.dir}" />
<delete file="${jar.name}" />
</target>
<!-- run all tasks except cleanup -->
<target name="all" depends="run, javadoc" />
</project>