]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added Git Revision to GWT version file
authorJohn Ahlroos <john@vaadin.com>
Mon, 3 Sep 2012 13:24:25 +0000 (16:24 +0300)
committerJohn Ahlroos <john@vaadin.com>
Mon, 3 Sep 2012 13:24:38 +0000 (16:24 +0300)
build/build.xml

index c234480877ff80cc66276f33ba1edd71d8842e61..d8938371a2065b45fd3924f82b01d98c0b61af47 100644 (file)
         <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" >