summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryjiang2012-03-01 03:10:58 (EST)
committer xgu2012-03-01 03:10:58 (EST)
commit1dfdea46832d89cb00a772feaac6057e3271483f (patch)
treecb8858c6e6ba26a465b2c0c0178b49c68ebb8629
parenta791932d1fabef3d681bd4b76cd7f25876b7cdbf (diff)
downloadorg.eclipse.birt-1dfdea46832d89cb00a772feaac6057e3271483f.zip
org.eclipse.birt-1dfdea46832d89cb00a772feaac6057e3271483f.tar.gz
org.eclipse.birt-1dfdea46832d89cb00a772feaac6057e3271483f.tar.bz2
Add "Last Commit Id" of Git repo into build_info file
-rw-r--r--build/org.eclipse.birt.releng.birtbuilder/eclipse/buildConfigs/birt/tools/BIRTDownloadSetup.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/org.eclipse.birt.releng.birtbuilder/eclipse/buildConfigs/birt/tools/BIRTDownloadSetup.xml b/build/org.eclipse.birt.releng.birtbuilder/eclipse/buildConfigs/birt/tools/BIRTDownloadSetup.xml
index bc74011..2c61d27 100644
--- a/build/org.eclipse.birt.releng.birtbuilder/eclipse/buildConfigs/birt/tools/BIRTDownloadSetup.xml
+++ b/build/org.eclipse.birt.releng.birtbuilder/eclipse/buildConfigs/birt/tools/BIRTDownloadSetup.xml
@@ -266,6 +266,11 @@
<replace file="${OutputDir}\${birt.info}" token="#WTPVERSION#" value="${wtpVersion}"/>
<replace file="${OutputDir}\${birt.info}" token="#WTPURL#" value="${wtpURL}"/>
+ <exec executable="git" dir="${buildDirectory}/scmCache/${BirtRepoCache}" outputproperty="lastcommitid">
+ <arg line="log ${mapVersionTag} -1 --pretty=format:%H" />
+ </exec>
+ <replace file="${OutputDir}\${birt.info}" token="#lastcommitid#" value="${lastcommitid}"/>
+
</target>
<target name="createBirtNLFeatureOverlay">