summaryrefslogtreecommitdiff
path: root/tags/AoI/MetaCAD/0.9/jar-MetaCAD.xml
blob: dadb406864c6f036c5a2474ed4402149d84a9566 (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
<?xml version="1.0"?>

<project name="MetaCAD" default="dist" basedir=".">

  <!-- set global properties for this build -->
  <property name="src" value="MetaCAD/src" />
  <property name="build" value="MetaCAD/build" />
  <property name="classes" value="MetaCAD/classes" />
  <property name="docs" value="MetaCAD/docs" />
  <property name="dist" value="Plugins" />
  <property name="aoijar" value="ArtOfIllusion.jar" />
  <property name="buoyjar" value="Buoy.jar" />
  <property name="jeplite" value="MetaCAD/lib/jeplite-0.8.7a-bin.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}:${buoyjar}" debug="on" extdirs="" />
  </target>

  <target name="dist">
    <!-- Copy all necessary files into ${build}, then create the jar file -->
    <copy file="${src}/extensions.xml" todir="${build}" />
    <copy todir="${build}">
      <fileset dir="${src}" includes="*.properties" />
      <fileset dir="${classes}" includes="**/*.class" />
    </copy>
    <jar jarfile="${dist}/MetaCAD.jar" basedir="${build}">
        <zipfileset src="${jeplite}"/>
    </jar>
  </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="MetaCAD Documentation"
	public="true">
      <doctitle><![CDATA[<h1>MetaCAD</h1>]]></doctitle>
      <bottom><![CDATA[<i>Copyright &#169; 2009 by Marius Kintel and Philipp Tiefenbacher.</i>]]></bottom>
    </javadoc>
  </target>
  
  <target name="clean">
    <!-- Delete the ${build} and ${docs} directory trees -->
    <delete dir="${build}" />
    <delete dir="${docs}" />
  </target>
</project>