aboutsummaryrefslogtreecommitdiffstats
path: root/make/build-jogl.xml
diff options
context:
space:
mode:
Diffstat (limited to 'make/build-jogl.xml')
-rw-r--r--make/build-jogl.xml29
1 files changed, 17 insertions, 12 deletions
diff --git a/make/build-jogl.xml b/make/build-jogl.xml
index c88bbddf7..a1f324d62 100644
--- a/make/build-jogl.xml
+++ b/make/build-jogl.xml
@@ -2151,17 +2151,6 @@
includes="${jogl.tmp.version}/**" />
</target>
- <target name="setup-version-RI" if="jogl.ri">
- <property name="tmp.version" value="${jogl_base_version}" />
- </target>
-
- <target name="setup-version-non-RI" unless="jogl.ri">
- <tstamp>
- <format property="timestamp" pattern="yyyyMMdd"/>
- </tstamp>
- <property name="tmp.version" value="${jogl_base_version}-pre-${timestamp}" />
- </target>
-
<target name="dist" depends="dist.dir.check,dist.check.windows,dist.check.windows-amd64,dist.check.linux,dist.check.linux-amd64,dist.check.macosx,dist.check.macosxfat,dist.check.solsparc,dist.check.solsparcv9,dist.check.solx86,dist.check.solamd64,setup-version-RI,setup-version-non-RI">
<delete>
<fileset dir="${jogl.dist.dir}" includes="*.jar" />
@@ -2348,7 +2337,23 @@
<!--
- Build everything.
-->
- <target name="all" description="Build JOGL JAR file(s) and native libraries." depends="load.user.properties,init,jar,c.build.jogl" />
+ <target name="all" description="Build JOGL JAR file(s) and native libraries." depends="load.user.properties,init,jar,c.build.jogl,generate.version.txt" />
+
+ <target name="setup-version-RI" if="jogl.ri">
+ <property name="tmp.version" value="${jogl_base_version}" />
+ </target>
+
+ <target name="setup-version-non-RI" unless="jogl.ri">
+ <tstamp>
+ <format property="version.timestamp" pattern="yyyyMMdd"/>
+ </tstamp>
+ <property name="tmp.version" value="${jogl_base_version}-pre-${version.timestamp}" />
+ </target>
+
+ <target name="generate.version.txt" depends="setup-version-RI,setup-version-non-RI">
+ <!-- Create a version.txt file indicating which version we just built -->
+ <echo message="${tmp.version}" file="${build}/version.txt" />
+ </target>
<!-- ================================================================== -->
<!--