]> source.dussan.org Git - vaadin-framework.git/commitdiff
Correctly update version during build (#9624) 49/449/2
authorArtur Signell <artur@vaadin.com>
Sun, 2 Dec 2012 10:38:03 +0000 (12:38 +0200)
committerArtur Signell <artur@vaadin.com>
Sun, 2 Dec 2012 13:16:36 +0000 (15:16 +0200)
Change-Id: Ibe914273b27a109b6ce01928913434d0787baf71

shared/build.xml

index 0e52673ddd553b72dd91f59f91976dfc6105d3a8..9023cbdcc1ee9d94518c3d438fa054eaaefb4a32 100644 (file)
        <!-- global properties -->
        <property name="module.name" value="vaadin-shared" />
        <property name="module.symbolic" value="com.vaadin.shared" />
-       <property name="result.dir" value="result" />
+       <property name="result.dir" location="result" />
+       <property name="src.filtered" location="${result.dir}/filtered-src" />
+       <property name="src" location="${src.filtered}" />
        <path id="classpath.compile.custom" />
 
 
        <target name="jar">
                <property name="shared.osgi.import" value="org.json;version=&quot;20080701&quot;, com.google.gwt.thirdparty.guava.common.annotations, com.google.gwt.thirdparty.guava.common.base, com.google.gwt.thirdparty.guava.common.base.internal, com.google.gwt.thirdparty.guava.common.cache, com.google.gwt.thirdparty.guava.common.collect, com.google.gwt.thirdparty.guava.common.eventbus, com.google.gwt.thirdparty.guava.common.io, com.google.gwt.thirdparty.guava.common.net, com.google.gwt.thirdparty.guava.common.primitives, com.google.gwt.thirdparty.guava.common.util.concurrent, com.google.gwt.thirdparty.streamhtmlparser, com.google.gwt.thirdparty.streamhtmlparser.impl, com.google.gwt.thirdparty.streamhtmlparser.util, org.w3c.flute.parser, org.w3c.flute.parser.selectors, org.w3c.flute.util" />
+               <delete dir="${src.filtered}" />
+               <!-- Update version in Version.java -->
+               <copy todir="${src.filtered}">
+                       <fileset dir="src">
+                       </fileset>
+                       <filterchain>
+                               <replacetokens begintoken="@" endtoken="@">
+                                       <token key="VERSION" value="${vaadin.version}" />
+                               </replacetokens>
+                       </filterchain>
+               </copy>
+
                <antcall target="common.jar">
                        <param name="import-package" value="${shared.osgi.import}" />
                        <reference refid="shared.gwt.includes" torefid="extra.jar.includes" />
 
                <antcall target="common.publish-local" />
        </target>
-               
+
        <target name="clean">
-               <antcall target="common.clean"/>
+               <antcall target="common.clean" />
        </target>
-       
+
        <target name="tests">
                <!--<antcall target="common.tests.run" />-->
                <echo>WHAT? No tests for ${module.name}!</echo>