-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
77 lines (56 loc) · 2.12 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<project name="Simbad" default="dist" basedir=".">
<description>
Simbad Robot Simulator
Available Targets:
ant dist
ant javadoc
ant clean
ant all
</description>
<property name="src" location="src" />
<property name="build" location="build"/>
<property name="dist" location="lib"/>
<property name="doc" location="doc/api"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="simbad" depends="init" description="compilation of simbad package" >
<javac includeAntRuntime="false" srcdir="${src}/simbad" destdir="${build}">
<!--<compilerarg value="-Xlint:deprecation"/>-->
<!--<compilerarg value="-Xlint:unchecked"/>-->
</javac>
</target>
<target name="examples" depends="init" description="compilation of examples package" >
<javac includeAntRuntime="false" srcdir="${src}/examples" destdir="${build}"/>
</target>
<target name="contribs" depends="init" description="compilation of contributed packages" >
<javac includeAntRuntime="false" srcdir="${src}/contribs" destdir="${build}">
<!--<compilerarg value="-Xlint:unchecked"/>-->
</javac>
</target>
<target name="dist" depends="simbad" description="generate the distribution" >
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/simbad.jar">
<fileset dir="${build}">
<include name="simbad/**/*.class" />
</fileset>
<manifest>
<attribute name="Main-Class" value="simbad.gui.Simbad" />
</manifest>
</jar>
</target>
<target name="javadoc_simbad" depends="init">
<javadoc destdir="${doc}" author="true" version="true" use="true" windowtitle="simbad">
<fileset dir="${src}/simbad" defaultexcludes="yes">
</fileset>
</javadoc>
</target>
<target name="clean" description="clean up" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
<delete dir="${doc}"/>
</target>
<target name="javadoc" depends="javadoc_simbad"> </target>
<target name="all" depends="dist,javadoc,examples,contribs"> </target>
</project>