Skip to content

Commit

Permalink
Added 'gluegen.build.id' (hudson timestamp) and 'gluegen.build.commit…
Browse files Browse the repository at this point in the history
…' (git commit sha1)

to the JARs Manifest files and artifact.properties.
  • Loading branch information
sgothel committed Nov 10, 2010
1 parent c520633 commit 144be63
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions make/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Specification-Version: @BASEVERSION@
Specification-Vendor: JogAmp community
Implementation-Title: GlueGen Compile-Time
Implementation-Version: @VERSION@
Implementation-Commit: @SCM_COMMIT@
Implementation-Vendor: JogAmp community
Implementation-Vendor-Id: com.jogamp
Main-Class: com.jogamp.gluegen.GlueGen
Expand Down
1 change: 1 addition & 0 deletions make/Manifest-rt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Specification-Version: @BASEVERSION@
Specification-Vendor: JogAmp community
Implementation-Title: GlueGen Run-Time
Implementation-Version: @VERSION@
Implementation-Commit: @SCM_COMMIT@
Implementation-Vendor: JogAmp community
Extension-Name: com.jogamp.common
Implementation-Vendor-Id: com.jogamp
Expand Down
1 change: 1 addition & 0 deletions make/Manifest-rt.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Specification-Version: @BASEVERSION@
Specification-Vendor: JogAmp community
Implementation-Title: GlueGen Run-Time CDC
Implementation-Version: @VERSION@
Implementation-Commit: @SCM_COMMIT@
Implementation-Vendor: JogAmp community
Extension-Name: com.jogamp.common
Implementation-Vendor-Id: com.jogamp
Expand Down
14 changes: 11 additions & 3 deletions make/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,17 @@
<property name="javadoc" location="${build}/javadoc" />
<property name="gluegen.lib.dir" value="${build}/obj"/>

<tstamp>
<format property="version.timestamp" pattern="yyyyMMdd"/>
</tstamp>

<property file="${build}/artifact.properties"/>
<property name="gluegen.build.number" value="manual"/>
<property name="gluegen.build.id" value="${version.timestamp}"/>
<property name="gluegen.build.commit" value="manual"/>

<!-- This is the version of GlueGen you are building -->
<property name="gluegen_base_version" value="2.0"/>
<tstamp>
<format property="version.timestamp" pattern="yyyyMMdd"/>
</tstamp>
<property name="gluegen.version" value="${gluegen_base_version}-b${gluegen.build.number}-${version.timestamp}" />

<!-- The generated source directories. -->
Expand Down Expand Up @@ -604,6 +607,7 @@
overwrite="true">
<filterset>
<filter token="VERSION" value="${gluegen.version}"/>
<filter token="SCM_COMMIT" value="${gluegen.build.commit}"/>
<filter token="BASEVERSION" value="${gluegen_base_version}"/>
</filterset>
</copy>
Expand All @@ -620,6 +624,7 @@
overwrite="true">
<filterset>
<filter token="VERSION" value="${gluegen.version}"/>
<filter token="SCM_COMMIT" value="${gluegen.build.commit}"/>
<filter token="BASEVERSION" value="${gluegen_base_version}"/>
</filterset>
</copy>
Expand All @@ -629,6 +634,7 @@
overwrite="true">
<filterset>
<filter token="VERSION" value="${gluegen.version}"/>
<filter token="SCM_COMMIT" value="${gluegen.build.commit}"/>
<filter token="BASEVERSION" value="${gluegen_base_version}"/>
</filterset>
</copy>
Expand Down Expand Up @@ -692,6 +698,8 @@

<target name="tag.build" depends="init">
<echo message='gluegen.build.number=${gluegen.build.number}${line.separator}' file="${build}/artifact.properties"/>
<echo message='gluegen.build.id=${gluegen.build.id}${line.separator}' file="${build}/artifact.properties" append="true"/>
<echo message='gluegen.build.commit=${gluegen.build.commit}${line.separator}' file="${build}/artifact.properties" append="true"/>
</target>

<target name="junit.compile" depends="init, gluegen.cpptasks.detect.os">
Expand Down

0 comments on commit 144be63

Please sign in to comment.