-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
60 lines (51 loc) · 1.51 KB
/
build.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
<project name="Shopping mall simulation" default="run">
<!-- External JARs included into classpath -->
<path id="external-libs">
<fileset dir="libs">
<include name="*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="bin" />
</target>
<target name="compile">
<mkdir dir="bin" />
<mkdir dir="bin/classes" />
<javac srcdir="src" destdir="bin/classes">
<classpath refid="external-libs" />
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="bin/jar" />
<manifestclasspath property="lib.list" jarfile="bin/jar/MallSim.jar">
<classpath refid="external-libs" />
</manifestclasspath>
<jar destfile="bin/jar/MallSim.jar" basedir="bin/classes">
<manifest>
<attribute name="Main-Class" value="sim.MallSim" />
<attribute name="Class-Path" value="${lib.list}" />
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="bin/jar/MallSim.jar" fork="true">
<classpath refid="external-libs" />
</java>
</target>
<target name="docs">
<!-- Make JavaDoc -->
<mkdir dir="docs/html" />
<javadoc sourcepath="src/"
packagenames="sim.*,sim.gui.*,sim.model.*,sim.model.algo.*,sim.control.*,sim.util.*"
destdir="docs/html">
<classpath refid="external-libs" />
</javadoc>
<!-- Make DocDoc (two runs of xelatex required) -->
<exec dir="docs" executable="xelatex">
<arg value="docs.tex" />
</exec>
<exec dir="docs" executable="xelatex">
<arg value="docs.tex" />
</exec>
</target>
</project>