blob: da112794ecf114a7cb12c7048ff27e85ca63f9bd (
plain)
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
|
<?xml version="1.0"?>
<project name="CSGEvaluator" default="dist" basedir=".">
<property file="build.properties" />
<!-- set global properties for this build -->
<property name="package" value="${ant.project.name}" />
<property name="src" value="${package}/src" />
<property name="build" value="${package}/build" />
<property name="docs" value="${package}/docs" />
<property name="dist" value="Plugins" />
<property name="aoijar" value="${aoidir}/ArtOfIllusion.jar" />
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
<!-- Create the docs directory structure used by documentation -->
<mkdir dir="${docs}" />
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac source="1.5" target="1.5" srcdir="${src}" destdir="${build}"
classpath="${aoijar}" debug="on" extdirs="" />
</target>
<target name="dist" depends="compile">
<!-- create the jar, including all required files -->
<jar jarfile="${dist}/${package}.jar" basedir="${build}" >
<fileset dir="${src}" includes="extensions.xml, *.properties, icons/**" />
<!-- <zipfileset prefix="help" dir="${help}/help" /> -->
</jar>
</target>
<target name="source">
<property name="src-name" value="${package}-src-${version}" />
<!-- create the source archives -->
<zip file="./${src-name}.zip" >
<zipfileset prefix="${package}/${package}/src" dir="${src}" />
<zipfileset prefix="${package}" dir="." includes="*.xml, *.properties" />
</zip>
<tar tarfile="./${src-name}.tz" compression="gzip">
<tarfileset prefix="${package}/${package}/src" dir="${src}" />
<tarfileset prefix="${package}" dir="." includes="*.xml, *.properties" />
</tar>
</target>
<target name="docs" depends="init">
<javadoc packagenames="artofillusion.*"
sourcepath="${src}"
classpath="${buoyjar};${aoijar}"
defaultexcludes="yes"
destdir="${docs}"
author="true"
version="true"
use="true"
windowtitle="${package} Documentation"
public="true">
<doctitle><![CDATA[<h1>${package}</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2009 by Marius Kintel.</i>]]></bottom>
</javadoc>
</target>
<target name="clean">
<!-- Delete the ${build} and ${docs} directory trees -->
<delete dir="${build}" />
<delete dir="${docs}" />
<delete file="${dist}/${package}.jar" />
</target>
</project>
|