diff options
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 56 |
1 files changed, 54 insertions, 2 deletions
@@ -16,6 +16,24 @@ <project name="vecmath-1.5.2" default="jar-debug" basedir="."> + <!-- *************************************** --> + <!-- *** Begin build-specific properties *** --> + <!-- *************************************** --> + + <!-- + * The following properties specify the current version of 3D. + * The "version_base" property specifies the dot-dot base version + * number of 3D; it must contain exactly three integer numbers + * separated by "periods ("."). It should match the version base + * defined in the j3d-core build.xml file. + --> + <property name="version_base" value="1.5.2"/> + + <!-- ************************************* --> + <!-- *** End build-specific properties *** --> + <!-- ************************************* --> + + <!-- Set global properties for this build --> <property name="src" location="src"/> <property name="build" location="build"/> @@ -23,6 +41,12 @@ <property name="version" value="1_5_2"/> <property name="docname" value="vecmath-${version}-doc"/> + <property name="build.spec.title" value="3D Vector Math Package"/> + <property name="build.impl.title" value="3D Vector Math Package"/> + <property name="build.spec.vendor" value=""/> + <property name="build.impl.vendor" value=""/> + <property name="build.impl.vendor.id" value=""/> + <target name="echo"> <echo message="user.name = ${user.name}"/> <echo message="user.home = ${user.home}"/> @@ -48,6 +72,7 @@ <!-- Create the debug build directory structure used for compile --> <mkdir dir="${build}/debug/classes"/> + <mkdir dir="${build}/debug/gen"/> <!-- Compile the java code from ${src} into ${build}/debug/classes --> <javac srcdir="${src}" @@ -68,6 +93,7 @@ <!-- Create the opt build directory structure used for compile --> <mkdir dir="${build}/opt/classes"/> + <mkdir dir="${build}/opt/gen"/> <!-- Compile the java code from ${src} into ${build}/opt/classes --> <javac srcdir="${src}" @@ -91,6 +117,19 @@ <!-- Create the jar directory --> <mkdir dir="${build}/debug/lib/ext"/> + <copy todir="${build}/debug/gen" + overwrite="true"> + <fileset dir="${src}" 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 the copyright file and all license files --> <copy todir="${build}/debug/classes/javax"> <fileset dir="." includes="COPYRIGHT.txt"/> @@ -99,7 +138,7 @@ <!-- Put everything in ${build}/debug/classes into the vecmath.jar file --> <jar jarfile="${build}/debug/lib/ext/vecmath.jar" - manifest="${src}/VECMATH.MF" compress="false" update="yes"> + manifest="${build}/debug/gen/VECMATH.MF" compress="false" update="yes"> <fileset dir="${build}/debug/classes"/> </jar> </target> @@ -108,6 +147,19 @@ <!-- Create the jar directory --> <mkdir dir="${build}/opt/lib/ext"/> + <copy todir="${build}/opt/gen" + overwrite="true"> + <fileset dir="${src}" 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 the copyright file and all license files --> <copy todir="${build}/opt/classes/javax"> <fileset dir="." includes="COPYRIGHT.txt"/> @@ -116,7 +168,7 @@ <!-- Put everything in ${build}/classes/opt into the vecmath.jar file --> <jar jarfile="${build}/opt/lib/ext/vecmath.jar" - manifest="${src}/VECMATH.MF" compress="false" update="yes"> + manifest="${build}/opt/gen/VECMATH.MF" compress="false" update="yes"> <fileset dir="${build}/opt/classes"/> </jar> </target> |