summaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-16 03:25:36 +0200
committerSven Gothel <[email protected]>2011-05-16 03:25:36 +0200
commit6e6dd7228415e788ac254364c5f36a7d70216e6b (patch)
tree31ea4ebe0521161c69e4f744957b8c8eb514c345 /make/build.xml
parentc5a56e10677e9dc0a048c2be3de16701aac9ad17 (diff)
build: Query git branch/sha1 and use it if not set and tools are available; Add Java source zip file.
Query git branch/sha1 and use it if not set and tools are available. This shall improve tracking of manual generated binaries/bundles. Add Java source zip file. Contains all Java source code (incl. generated ones) enhancing IDE usage, where API doc and source browsing of libs is supported (NB/Eclipse/etc).
Diffstat (limited to 'make/build.xml')
-rw-r--r--make/build.xml22
1 files changed, 19 insertions, 3 deletions
diff --git a/make/build.xml b/make/build.xml
index 78f7cdc..f058512 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -62,11 +62,23 @@
<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.branch" value="master"/>
- <property name="gluegen.build.commit" value="manual"/>
+ <mkdir dir="${build}" />
+ <exec dir="." executable="git" logError="true" failonerror="false" failifexecutionfails="false"
+ output="${build}/localbranch.raw">
+ <arg line="branch --no-color"/>
+ </exec>
+ <exec dir="." executable="sed" logError="true" failonerror="false" failifexecutionfails="false"
+ outputproperty="gluegen.build.branch">
+ <arg line="-e '/^[^*]/d' -e 's/* \(.*\)/\1/' ${build}/localbranch.raw"/>
+ </exec>
+ <property name="gluegen.build.branch" value="manual"/> <!-- fallback -->
+ <exec dir="${project.root}" executable="git" logError="true" failonerror="false" failifexecutionfails="false"
+ outputproperty="gluegen.build.commit">
+ <arg line="rev-parse HEAD"/>
+ </exec>
+ <property name="gluegen.build.commit" value="manual"/> <!-- fallback -->
<!-- This is the version of GlueGen you are building -->
<property name="gluegen_base_version" value="2.0"/>
@@ -710,6 +722,10 @@
<copy todir="${archive}/jnlp-files">
<fileset dir="${project.root}/jnlp-files" includes="*" />
</copy>
+ <zip destfile="${archive}/gluegen-java-src.zip">
+ <fileset dir="${src.java}"/>
+ <fileset dir="${build}/gensrc/java"/>
+ </zip>
<archive.7z destfile="${build}/${archive.name}.7z"
basedir="${build}"
includes="${archive.name}/**" />