summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/build.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/build.xml b/build/build.xml
index c234480877..d8938371a2 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -855,8 +855,17 @@
<mkdir dir="${output-dir}/META-INF"/>
<echo file="${output-dir}/META-INF/VERSION">${version.full}</echo>
+ <!-- Get Git revision -->
+ <exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
+ <arg value="describe"/>
+ <arg value="--tags"/>
+ <arg value="--always"/>
+ <arg value="HEAD"/>
+ </exec>
+
<!-- Replace GWT versioning with Vaadin versioning -->
- <echo file="${result-classes-gwt}/com/google/gwt/dev/About.properties">gwt.version=${version.full}</echo>
+ <echo file="${result-classes-gwt}/com/google/gwt/dev/About.properties">gwt.version=${version.full}
+gwt.svnrev=${git.revision}</echo>
<jarjar jarfile="${output-dir}/WebContent/WEB-INF/lib/${lib-jar-name}"
compress="true" manifest="build/package/META-INF/MANIFEST.MF" duplicate="preserve" index="true" >