summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--make/build.xml22
-rwxr-xr-xmake/scripts/make.gluegen.all.linux-x86_64.sh2
2 files changed, 20 insertions, 4 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}/**" />
diff --git a/make/scripts/make.gluegen.all.linux-x86_64.sh b/make/scripts/make.gluegen.all.linux-x86_64.sh
index 408db63..33aae19 100755
--- a/make/scripts/make.gluegen.all.linux-x86_64.sh
+++ b/make/scripts/make.gluegen.all.linux-x86_64.sh
@@ -11,7 +11,7 @@ fi
# -DisLinuxAMD64=true \
# -DisX11=true \
+# BUILD_ARCHIVE=true \
ant \
- -Djavacdebuglevel="source,lines,vars" \
-Drootrel.build=build-x86_64 \
$* 2>&1 | tee make.gluegen.all.linux-x86_64.log