summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-09-17 23:30:14 -0700
committerHarvey Harrison <[email protected]>2012-09-17 23:30:14 -0700
commit5037d256050a1b2569e95d1c53c21cf483b4cc3e (patch)
treee80c2cf8ab8826f0e5a0d973486d45efe7a3468e
parentc9679b9bc7d257aa8a2b482a14ccdc7f6e65ef47 (diff)
BUILD: add the simplified ant build script1.6.0-pre7
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r--build2.xml70
1 files changed, 70 insertions, 0 deletions
diff --git a/build2.xml b/build2.xml
new file mode 100644
index 0000000..4a78178
--- /dev/null
+++ b/build2.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+
+<project name="vecmath" basedir="." default="jar">
+
+ <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="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>
+</project> \ No newline at end of file