-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
69 lines (61 loc) · 2.37 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
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<project name="PolyMesh" default="dist" basedir=".">
<!-- set global properties for this build -->
<property name="aoilocation" value=".." />
<property name="src" value="src" />
<property name="build" value="build" />
<property name="docs" value="docs" />
<property name="dist" value="${aoilocation}/Plugins" />
<property name="aoijar" value="${aoilocation}/ArtOfIllusion.jar" />
<property name="mtjjar" value="mtj.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.8" target="1.8" srcdir="${src}" destdir="${build}" classpath="${aoijar}:${mtjjar}" debug="on" extdirs="" />
</target>
<target name="dist" depends="compile">
<!-- Copy all necessary files into ${build}, then create the jar file -->
<unjar src="${mtjjar}" dest="${build}" />
<copy file="${src}/PMkeystrokes.xml" todir="${build}" />
<copy file="${src}/extensions.xml" todir="${build}" />
<copy todir="${build}">
<fileset dir="${src}" includes="*.properties" />
</copy>
<copy todir="${build}/polymesh">
<fileset dir="${src}/artofillusion/polymesh/Icons" />
</copy>
<copy todir="${build}/artofillusion/polymesh/interfaces">
<fileset dir="${src}/artofillusion/polymesh/interfaces">
<include name="*.xml"/>
</fileset>
</copy>
<jar jarfile="${dist}/PolyMesh.jar" basedir="${build}" />
</target>
<target name="docs" depends="init">
<javadoc packagenames="artofillusion.*"
sourcepath="${src}"
classpath="${aoijar}"
defaultexcludes="yes"
destdir="${docs}"
author="true"
version="true"
use="true"
windowtitle="Polygonal Mesh Documentation"
public="true">
<doctitle><![CDATA[<h1>Polygonal Mesh</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2004-2006 by Francois Guillet.</i>]]></bottom>
</javadoc>
</target>
<target name="clean">
<!-- Delete the ${build} and ${docs} directory trees -->
<delete dir="${build}" />
<delete dir="${docs}" />
</target>
</project>