build.xml
2.63 KB
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
<project name="analyse" default="compile" basedir=".">
<description>
The base ant build file.
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="classes" location="classes"/>
<property name="dist" location="dist"/>
<property name="include" location="include"/>
<target name="init" description="Clears the /class directory">
<!-- Create the time stamp -->
<tstamp/>
<mkdir dir="dist"/>
<mkdir dir="javadoc"/>
<mkdir dir="classes"/>
</target>
<target name="compile" depends="init" description="Compile the source" >
<!-- Compile the java code from ${src} into ${build} executable="javac" -->
<javac srcdir="${src}"
destdir="${classes}"
includeantruntime="false"
executable="javac.exe"
optimize="true"
debug="off"
classpath=""/>
</target>
<target name="build" description="Build the distribution .jar file" >
<!-- Create the temporary distribution directory -->
<delete includeEmptyDirs="true"><fileset dir="dist" includes="**/*" excludes="gtc*.jar"/></delete>
<mkdir dir="${dist}/temp-${DSTAMP}"/>
<copy todir="${dist}/temp-${DSTAMP}"><fileset dir="${classes}" /></copy>
<copy todir="${dist}/temp-${DSTAMP}"><fileset dir="${include}" /></copy>
<!-- copy everything from /include/others to dist
<copy todir="${dist}/temp-${DSTAMP}"><fileset dir="${include}/others" /></copy>-->
<!-- copy everything from /include/classes to dist
<copy todir="${dist}/temp-${DSTAMP}"><fileset dir="${include}/classes" /></copy>-->
<!-- pack everything into a .jar file -->
<jar jarfile="${dist}/anna-3.5.jar" basedir="${dist}/temp-${DSTAMP}">
<manifest>
<attribute name="Main-Class" value="is2.parser.Parser"/>
</manifest>
</jar>
<delete dir="${dist}/temp-{DSTAMP}" />
</target>
<target name="javadoc" depends="init" description="Create the javadoc API documentation" >
<delete includeEmptyDirs="true"><fileset dir="javadoc" includes="**/*"/></delete>
<!-- TODO: you might add new packages to packagenames -->
<javadoc destdir="javadoc" access="package" source="1.4"
use="false" notree="false" nonavbar="false" noindex="true"
splitindex="false" author="true" version="true"
nodeprecatedlist="true" nodeprecated="false"
packagenames="gtc.*.*"
sourcepath="src" classpath="class"/>
</target>
<target name="all" depends="init,compile,javadoc" description="Make all" />
</project>