-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
55 lines (50 loc) · 1.63 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
<project name="WireworldEvolver" default="dist"
basedir=".">
<description>
WireworldEvolver
</description>
<property name="src" value="src"/>
<property name="api" value="doc/api"/>
<property name="build" value="build"/>
<property name="dist" value="dist"/>
<property name="mainClass" value="wireworldevolver.Main"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<copy todir="${build}">
<fileset dir="${src}/wireworldevolver/test/txtfiles"/>
</copy>
</target>
<target name="compile" depends="init"
description="compiles the source">
<javac srcdir="${src}"
classpath="junit-4.7.jar"
destdir="${build}"/>
</target>
<target name="dist" depends="compile,javadoc"
description="generates a dist">
<mkdir dir ="${dist}"/>
<jar jarfile="${dist}/WireworldEvolver-${DSTAMP}.jar"
basedir="${build}">
<manifest>
<attribute name="Main-Class" value="${mainClass}"/>
</manifest>
</jar>
</target>
<target name="clean"
description="cleans up">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
<target name="javadoc">
<mkdir dir="${api}" />
<javadoc destdir="${api}"
classpath="junit-4.7.jar:${build}"
use="true">
<packageset dir="${src}">
<include name="wireworldevolver"/>
<include name="wireworldevolver/test"/>
</packageset>
</javadoc>
</target>
</project>