diff options
author | Michael Bien <[email protected]> | 2010-11-15 19:42:32 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-11-15 19:42:32 +0100 |
commit | 0835aa8b37b8be7efa8ababa2d91bb6752c7ad99 (patch) | |
tree | 8a35d6fcc01351e4cb5322a710b5c107fb55c902 /build.xml | |
parent | 620d415f167d789f52351f01d4dcb902a59bcbaa (diff) |
added more versioning information to jar manifest + ziped distribution as last build step.
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 32 |
1 files changed, 31 insertions, 1 deletions
@@ -87,6 +87,27 @@ <target name="-post-compile" depends="c.compile.default" /> + <target name="-pre-jar"> + + <property name="jocl.build.number" value="CUSTOM" /> + <property name="jocl.scm.branch" value="unknown" /> + <property name="jocl.scm.commit" value="unknown" /> + + <tstamp> + <format property="version.timestamp" pattern="yyyyMMdd"/> + </tstamp> + + <property name="jocl.version" value="${jocl_base_version}-b${jocl.build.number}-${version.timestamp}" /> + + <copy file="${basedir}/manifest_template.mf" tofile="${rootrel.build}/manifest.mf"> + <filterset> + <filter token="VERSION" value="${jocl.version}"/> + <filter token="SCM_BRANCH" value="${jocl.scm.branch}"/> + <filter token="SCM_COMMIT" value="${jocl.scm.commit}"/> + </filterset> + </copy> + </target> + <target name="-post-jar" depends="jar.natives,tag.build"> <property name="jocl.jnlp.codebase" value="http://jogamp.org/deployment/webstart-next/jocl"/> @@ -99,6 +120,15 @@ </filterchain> </copy> + <zip destfile="${dist.dir}/jocl-${jocl.version}-${os.and.arch}.zip"> + <fileset dir="${dist.dir}"> + <include name="*.jar"/> + <include name="*.jnlp"/> + <include name="*.properties"/> + <include name="lib/*"/> + </fileset> + </zip> + </target> <target name="tag.build"> @@ -112,7 +142,7 @@ <jar basedir="${natives.jocl.dir}/${namespace}" excludes="*.xml" destfile="${dist.jar.dir}/jocl-natives-${os.and.arch}.jar" - manifest="${basedir}/manifest.mf" /> + manifest="${rootrel.build}/manifest.mf" /> </target> |