diff options
-rw-r--r-- | build2.xml | 70 |
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 |