forked from ArtOfIllusion/ArtOfIllusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArtOfIllusion.xml
86 lines (74 loc) · 2.81 KB
/
ArtOfIllusion.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
78
79
80
81
82
83
84
85
86
<?xml version="1.0"?>
<project name="ArtOfIllusion" default="dist" basedir=".">
<!-- set global properties for this build -->
<property file="build.properties" />
<property name="srclib" value="${srclib}" />
<property name="dist" value="${dist}" />
<property name="docs" value="${docs}" />
<property name="lang.version" value="${lang.version}" />
<property name="java.args" value="${java.args}" />
<property name="java.encoding" value="${java.encoding}" />
<property name="src" value="ArtOfIllusion/src" />
<property name="build" value="ArtOfIllusion/build" />
<!-- set of all library jars -->
<fileset id="libraries" dir="${srclib}" includes="*.jar" />
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init">
<!-- generate a classpath from the "libraries" fileset -->
<pathconvert property="classpath" refid="libraries" />
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}"
destdir="${build}"
encoding="${java.encoding}"
classpath="${classpath}"
debug="on"
target="${lang.version}"
source="${lang.version}" >
<compilerarg line="${java.args}"/>
</javac>
</target>
<target name="dist" depends="compile">
<!-- generate a Manifest classpath from the "libraries" fileset-->
<pathconvert pathsep=" " dirsep="/" property="libraries" refid="libraries">
<map from="${basedir}/" to="" />
</pathconvert>
<!-- jar all the required files -->
<jar destfile="${dist}/ArtOfIllusion.jar">
<fileset dir="${build}"/>
<fileset dir="${src}" includes="**/*.xml, **/*.properties, **/*.png, **/*.jpg, **/*.gif" />
<manifest>
<attribute name="Main-Class" value="artofillusion.ArtOfIllusion"/>
<attribute name="Class-Path" value="${libraries}"/>
<attribute name="Implementation-Version" value="${git.revision}"/>
<attribute name="Build-Time" value="${TODAY} at ${TSTAMP}"/>
</manifest>
</jar>
</target>
<target name="docs">
<mkdir dir="${docs}" />
<javadoc packagenames="artofillusion.*"
sourcepath="${src}"
classpath="${lib}/*.jar"
source="${lang.version}"
defaultexcludes="yes"
destdir="${docs}/${ant.project.name}"
author="true"
version="true"
use="true"
windowtitle="Art of Illusion Documentation"
public="true">
<doctitle><![CDATA[<h1>Art of Illusion</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 1999-2011 by Peter Eastman.</i>]]></bottom>
</javadoc>
</target>
<target name="clean">
<!-- Delete the ${build} and ${docs} directory trees -->
<delete dir="${build}" />
<delete dir="${docs}" />
</target>
</project>