]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added Git Revision to GWT version file
authorArtur Signell <artur@vaadin.com>
Tue, 4 Sep 2012 05:46:35 +0000 (08:46 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 9 Sep 2012 08:23:11 +0000 (11:23 +0300)
client-compiler/build.xml

index 2b5d9e34dc759ef95f62945a25d5b16d7401943e..fd29e8ed02894c371463b35561ec3600fa0eca96 100644 (file)
        </union>
 
        <target name="jar">
-               <echo file="${result.dir}/com/google/gwt/dev/About.properties">gwt.version=${vaadin.version}</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> 
+                
+               <echo file="${result.dir}/com/google/gwt/dev/About.properties">gwt.version=${vaadin.version}
+gwt.svnrev=${git.revision}</echo>
 
                <antcall target="common.jar">
                        <reference refid="compiler.includes" torefid="extra.jar.includes" />