aboutsummaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
authorgfxadmin <[email protected]>2006-02-16 01:34:08 +0000
committergfxadmin <[email protected]>2006-02-16 01:34:08 +0000
commitdee28910f1cf4c5c7ff4fe4500fd12acba8beadd (patch)
treea6bdbbe34910d20345b3e41704239ba56842acbd /make/build.xml
parentb5dd8c190c83e9b0059093eb01f60379b1bfe256 (diff)
Issue number:
Obtained from: Submitted by: Travis Reviewed by: We are modifying the versioning for non-release builds. Now the timestamp is part of the implementation version string. For instance, "1.0.0-pre-20060215-17:03:32" is an implementation of the 1.0.0 version of the API built on Feb. 15, 2006, at 5:03:32 PM. This is how our daily build version strings will look. This is how the default build works. Our official beta builds which are known as "stable" builds will have a version string like: "1.0.0-beta3", etc. Our final version of 1.0.0 implementation will become the "release" build and the version string will be: 1.0.0 There are two easy ways to obtain the version string: 1) use the jogl.verbose properties flag (-Djogl.verbose) to see it at the command line 2) use the java.lang.Package API to query it programatically. See example in demos called demos/misc/VersionInfo We are removing the Version utility class because it was insufficient for a number of reasons. It should be removed with this putback. I am not 100% positive that this does not break the JOGLAppletLauncher class with the change that I have putback, but I can't test it here in my environment. And I am pretty sure it will still work, but we will test it. Modified Files: src/classes/com/sun/opengl/util/JOGLAppletLauncher.java make/joglversion make/build.xml make/joglRIversion ---------------------------------------------------------------------- git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@612 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/build.xml')
-rw-r--r--make/build.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/make/build.xml b/make/build.xml
index daa12edc5..d013e4181 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -54,6 +54,9 @@
- the original OS detection code.
-->
<project name="JOGL" basedir="." default="all">
+
+ <!-- This is the version of JOGL you are building -->
+ <property name="base_version" value="1.0.0"/>
<!-- Pull in GlueGen cpptasks build file -->
<property name="gluegen.root" value="../../gluegen" />
@@ -901,13 +904,24 @@
<target name="cond-else-RImanifest" depends="check-RIcond" unless="RIcond-is-true">
- <jar manifest="joglversion" destfile="${jogl.jar}">
+ <tstamp>
+ <format property="timestamp" pattern="yyyyMMdd-HH:mm:ss"/>
+ </tstamp>
+ <copy file="joglversion"
+ tofile="tempversion"
+ overwrite="true">
+ <filterset>
+ <filter token="VERSION" value="${base_version}-pre-${timestamp}"/>
+ </filterset>
+ </copy>
+ <jar manifest="tempversion" destfile="${jogl.jar}">
<fileset dir="${classes}">
<include name="javax/media/opengl/**" />
<include name="com/sun/gluegen/runtime/**" />
<include name="com/sun/opengl/**" />
</fileset>
</jar>
+ <delete file="tempversion"/>
</target>