[go: up one dir, main page]

Menu

[d3a740]: / build.xml  Maximize  Restore  History

Download this file

47 lines (37 with data), 1.5 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
<project name="Ket" default="run" basedir=".">
<description>
An ant build script to Clean, document, build and package the Ket project.
</description>
<property name="src" location="src"/>
<property name="class" location="class"/>
<property name="javadoc" location="docs/javadoc"/>
<property name="data" location="data"/>
<property name="root" location="."/>
<property name="version" value="0.7.01"/>
<property name="includeantruntime" value="false"/>
<target name="init">
<tstamp/>
<mkdir dir="${class}"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}" destdir="${class}" includeantruntime="false" />
</target>
<target name="jar" depends="compile" description="Package the jar">
<jar jarfile="ket${version}.jar" manifest="${src}/manifest.mft">
<fileset dir="${class}" includes="**" />
<fileset dir="." includes="data/**" />
</jar>
</target>
<target name="run" depends="jar" description="Build and run the package">
<java jar="ket${version}.jar" fork="true" />
</target>
<target name="clean" description="Delete class files and javadoc">
<delete includeemptydirs="true">
<fileset dir="${class}" excludes=".gitignore" />
</delete>
<delete dir="${javadoc}"/>
</target>
<target name="document" description="Build the javadoc documentation in ${javadoc} from the source code">
<javadoc sourcepath="${src}" destdir="${javadoc}" />
</target>
</project>