summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorphil <[email protected]>2018-12-23 22:40:58 +1300
committerphil <[email protected]>2018-12-23 22:40:58 +1300
commit63fe7f35ead4db73dfa3128413bd48674b06d6e1 (patch)
treeca92328c4e253d239ed6086b098eaa0d3e215f68 /build.xml
parente5b12d9df1e74f09d0bbf19b873bcafe1aa10cca (diff)
# WARNING: head commit changed in the meantime
source location changed, javadoc files added, AWT dependant methods removed
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml83
1 files changed, 83 insertions, 0 deletions
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..f33f185
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0"?>
+
+<project name="vecmath" basedir="." default="all">
+
+ <property name="src.dir" location="src"/>
+ <property name="build.dir" location="build"/>
+ <property name="gen.dir" location="${build.dir}/gen"/>
+ <property name="class.dir" location="${build.dir}/classes"/>
+ <property name="javadoc.dir" location="${build.dir}/javadoc"/>
+
+ <property name="version_base" value="1.6.0"/>
+ <property name="build.spec.title" value="3D Vector Math Package"/>
+ <property name="build.spec.vendor" value=""/>
+ <property name="build.impl.title" value="3D Vector Math Package"/>
+ <property name="build.impl.vendor" value=""/>
+ <property name="build.impl.vendor.id" value=""/>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+
+ <target name="gen">
+ <mkdir dir="${gen.dir}"/>
+ <copy todir="${gen.dir}" overwrite="true">
+ <fileset dir="${src.dir}" includes="VECMATH.MF"/>
+ <filterset>
+ <filter token="VERSION_BASE" value="${version_base}"/>
+ <filter token="SPEC_TITLE" value="${build.spec.title}"/>
+ <filter token="SPEC_VENDOR" value="${build.spec.vendor}"/>
+ <filter token="IMPL_TITLE" value="${build.impl.title}"/>
+ <filter token="IMPL_VENDOR" value="${build.impl.vendor}"/>
+ <filter token="IMPL_VENDOR_ID" value="${build.impl.vendor.id}"/>
+ </filterset>
+ </copy>
+
+ <copy todir="${class.dir}/javax">
+ <fileset dir="." includes="COPYRIGHT.txt"/>
+ <fileset dir="." includes="LICENSE.txt"/>
+ </copy>
+ </target>
+
+ <target name="compile" depends="gen">
+ <mkdir dir="${class.dir}"/>
+
+ <javac srcdir="${src.dir}" destdir="${class.dir}"
+ source="1.5" target="1.5"
+ debug="true"
+ debuglevel="lines,source"
+ deprecation="on"
+ includeantruntime="false"
+ />
+
+ <copy todir="${class.dir}">
+ <fileset dir="${src.dir}" includes="**/*.properties"/>
+ </copy>
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar jarfile="${build.dir}/jars/vecmath.jar" manifest="${gen.dir}/VECMATH.MF"
+ compress="false" update="yes">
+ <fileset dir="${class.dir}"/>
+ </jar>
+
+ <zip destfile="${build.dir}/jars/vecmath-src.zip">
+ <fileset dir="${src.dir}" includes="**/*.java"/>
+ <fileset dir="." includes="COPYRIGHT.txt"/>
+ <fileset dir="." includes="LICENSE.txt"/>
+ </zip>
+
+ </target>
+
+ <target name="docs" depends="gen">
+ <mkdir dir="${javadoc.dir}"/>
+
+ <javadoc sourcepath="${src.dir}"
+ packagenames="javax.vecmath.*"
+ destdir="${javadoc.dir}"
+ windowtitle="Vecmath ${version_base}">
+ </javadoc>
+ </target>
+
+ <target name="all" depends="jar,docs" />
+</project>