diff options
author | kbr <[email protected]> | 2006-12-21 02:42:36 +0000 |
---|---|---|
committer | kbr <[email protected]> | 2006-12-21 02:42:36 +0000 |
commit | b27712235597b58ce8c5ee61dc183e3dafe0d4d7 (patch) | |
tree | 77ecd66d48302e4f0fee31d86165d7c83cff896b /make | |
parent | 09a939ba31a378bd39bd36a1cef5517c232642c7 (diff) |
Made changes to JOAL build.xml and joalversion file to be able to do a
release build using the nightly build system
git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@392 03bf7f67-59de-4072-a415-9a990d468a3f
Diffstat (limited to 'make')
-rwxr-xr-x | make/build.xml | 45 | ||||
-rwxr-xr-x | make/joalversion | 6 |
2 files changed, 31 insertions, 20 deletions
diff --git a/make/build.xml b/make/build.xml index a4b7209..4d6c6c7 100755 --- a/make/build.xml +++ b/make/build.xml @@ -32,12 +32,30 @@ <project name="JOAL" basedir="." default="all"> <!-- This is the version of JOAL you are building --> - <property name="base_version" value="1.1.0-beta4"/> + <property name="base_version" value="1.1.0"/> <!-- Pull in GlueGen cpptasks build file --> <property name="gluegen.root" value="../../gluegen" /> <import file="${gluegen.root}/make/gluegen-cpptasks.xml" /> + <!-- Uncomment this property to perform a full release build --> + <!-- property name="release-build" value="true" / --> + + <!-- Set up version string (used in several places) based on whether we're + doing a release build or not --> + <target name="setup-version-string-release" if="release-build"> + <property name="version-string" value="${base_version}" /> + </target> + + <target name="setup-version-string-prerelease" unless="release-build"> + <tstamp> + <format property="timestamp" pattern="yyyyMMdd"/> + </tstamp> + <property name="version-string" value="${base_version}-pre-${timestamp}" /> + </target> + + <target name="setup-version-string" depends="setup-version-string-release,setup-version-string-prerelease" /> + <!-- ================================================================== --> <!-- - Load user properties which override build defaults. @@ -513,16 +531,14 @@ <!-- - Build the joal.jar file. --> - <target name="jar" depends="java.compile"> + <target name="jar" depends="java.compile,setup-version-string"> <!-- Prepare the manifest --> - <tstamp> - <format property="timestamp" pattern="yyyyMMdd-HH:mm:ss"/> - </tstamp> <copy file="joalversion" tofile="tempversion" overwrite="true"> <filterset> - <filter token="VERSION" value="${base_version}-pre-${timestamp}"/> + <filter token="VERSION" value="${version-string}"/> + <filter token="BASEVERSION" value="${base_version}"/> </filterset> </copy> @@ -561,7 +577,7 @@ </target> <!-- Build zip archives for developers, both source and binaries --> - <target name="zip"> + <target name="zip" depends="setup-version-string"> <!-- Clean up and create temporary directory --> <delete dir="../build/tmp" failonerror="false" /> <delete> @@ -569,11 +585,7 @@ <include name="*.zip" /> </fileset> </delete> - <tstamp> - <format property="timestamp" pattern="yyyyMMdd"/> - </tstamp> - <property name="tmp.version" value="${base_version}-pre-${timestamp}" /> - <property name="joal.tmp.version" value="joal-${tmp.version}-${os.and.arch}" /> + <property name="joal.tmp.version" value="joal-${version-string}-${os.and.arch}" /> <mkdir dir="../build/tmp/${joal.tmp.version}/lib" /> <copy file="../build/joal.jar" todir="../build/tmp/${joal.tmp.version}/lib" /> <copy file="${gluegen-rt.jar}" todir="../build/tmp/${joal.tmp.version}/lib" /> @@ -593,8 +605,8 @@ basedir="../build/tmp" includes="${joal.tmp.version}/**" /> <!-- Build a source archive as well --> - <delete file="../build/joal-${tmp.version}-src.zip" /> - <zip destfile="../build/joal-${tmp.version}-src.zip" + <delete file="../build/joal-${version-string}-src.zip" /> + <zip destfile="../build/joal-${version-string}-src.zip" basedir="../.." includes="gluegen/LICENSE.txt,gluegen/doc/**,gluegen/make/**,gluegen/src/**,joal/README.txt,joal/LICENSE.txt,joal/make/**,joal/src/**,joal/build/gensrc/classes/net/java/games/joal/AL.java,joal/build/gensrc/classes/net/java/games/joal/ALC.java,joal/build/gensrc/classes/net/java/games/joal/ALCConstants.java,joal/build/gensrc/classes/net/java/games/joal/ALCcontext.java,joal/build/gensrc/classes/net/java/games/joal/ALCdevice.java,joal/build/gensrc/classes/net/java/games/joal/ALConstants.java" excludes="**/*.class,**/*~" @@ -623,7 +635,7 @@ </fail> </target> - <target name="dist" depends="dist.check"> + <target name="dist" depends="dist.check,setup-version-string"> <delete> <fileset dir="${joal.dist.dir}" includes="*.jar" /> <fileset dir="${joal.dist.dir}" includes="*.zip" /> @@ -653,8 +665,7 @@ <tstamp> <format property="timestamp" pattern="yyyyMMdd"/> </tstamp> - <property name="tmp.version" value="${base_version}-pre-${timestamp}" /> - <zip destfile="${joal.dist.dir}/joal-${tmp.version}-webstart.zip" + <zip destfile="${joal.dist.dir}/joal-${version-string}-webstart.zip" basedir="${joal.dist.dir}" includes="*.jar" /> diff --git a/make/joalversion b/make/joalversion index 68d124f..7c9ebd9 100755 --- a/make/joalversion +++ b/make/joalversion @@ -1,8 +1,8 @@ -Specification-Title: Java Bindings for OpenAL -Specification-Version: 1.1.0 +Specification-Title: Java Binding for OpenAL +Specification-Version: @BASEVERSION@ Specification-Vendor: java.net JOAL community Implementation-Title: Java Bindings for OpenAL Runtime Environment Implementation-Version: @VERSION@ -Implementation-Vendor: java.net JOGL community +Implementation-Vendor: java.net JOAL community Extension-Name: net.java.games.joal Implementation-Vendor-Id: com.sun |