]> source.dussan.org Git - vaadin-framework.git/commitdiff
Clean ivy cache and gwt dir before build
authorArtur Signell <artur@vaadin.com>
Thu, 30 Aug 2012 06:35:58 +0000 (09:35 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 9 Sep 2012 08:23:00 +0000 (11:23 +0300)
build.xml
gwt-files.xml

index f735a6ae7ae4eaf68047eba501c467a622bbdd99..d3a001c3c5db4eaa4aa302b5078a91056827d804 100644 (file)
--- a/build.xml
+++ b/build.xml
        <target name="clean" depends="buildorder">
                <subant buildpathref="build-path" target="clean">
                </subant>
+               <delete dir="result" />
+               <!-- Clean IVY cache (~/.ivy2) so no old artifacts are fetched from there -->
+               <ivy:cleancache />
+
        </target>
 
 </project>
index 1c562dae7be4d1cf53b8d39f7e4596b51d575965..dff4c1baf9b205d2792234acef23a14dc9921089 100755 (executable)
 <?xml version="1.0"?>
 
 <project name="GWT files for Vaadin" basedir=".">
-    <include file="common.xml" as="common" />
-
-    <property name="gwt.lib.dir" location="${vaadin.basedir}/../gwt-libs" />
-
-    <property name="gwt.user.jar" location="${gwt.lib.dir}/gwt-user.jar" />
-    <property name="gwt.dev.jar" location="${gwt.lib.dir}/gwt-dev.jar" />
-    <property name="gwt.elemental.jar" location="${gwt.lib.dir}/gwt-elemental.jar" />
-    <property name="gwt.codeserver.jar" location="${gwt.lib.dir}/gwt-codeserver.jar" />
-
-    <available file="${gwt.dev.jar}" property="gwt.dev.jar.found" />
-    <available file="${gwt.user.jar}" property="gwt.user.jar.found" />
-    <available file="${gwt.elemental.jar}" property="gwt.elemental.jar.found" />
-    <available file="${gwt.codeserver.jar}" property="gwt.codeserver.jar.found" />
-
-    <fail unless="gwt.dev.jar.found" message="Could not find gwt-dev.jar" />
-    <fail unless="gwt.user.jar.found" message="Could not find gwt-user.jar" />
-    <fail unless="gwt.elemental.jar.found" message="Could not find gwt-elemental.jar" />
-    <fail unless="gwt.codeserver.jar.found" message="Could not find gwt-codeserver.jar" />
-
-    <property name="gwt.unpack.dir" location="${vaadin.basedir}/build/gwt" />
-
-    <property name="gwt.user.jar.files" location="${gwt.unpack.dir}/gwt-user.jar" />
-    <property name="gwt.dev.jar.files" location="${gwt.unpack.dir}/gwt-dev.jar" />
-    <property name="gwt.elemental.jar.files" location="${gwt.unpack.dir}/gwt-elemental.jar" />
-    <property name="gwt.codeserver.jar.files" location="${gwt.unpack.dir}/gwt-codeserver.jar" />
-
-    <target name="unpack.gwt">
-        <mkdir dir="${gwt.user.jar.files}"></mkdir>
-        <mkdir dir="${gwt.dev.jar.files}"></mkdir>
-        <mkdir dir="${gwt.elemental.jar.files}"></mkdir>
-        <mkdir dir="${gwt.codeserver.jar.files}"></mkdir>
-        
-        <unzip dest="${gwt.user.jar.files}" src="${gwt.user.jar}" />
-        <unzip dest="${gwt.dev.jar.files}" src="${gwt.dev.jar}" />
-        <unzip dest="${gwt.elemental.jar.files}" src="${gwt.elemental.jar}" />
-        <unzip dest="${gwt.codeserver.jar.files}" src="${gwt.codeserver.jar}" />
-    </target>
-
-    <union id="client-compiler.gwt.includes">
-        <!-- GWT development JAR contents including many external dependencies 
+       <include file="common.xml" as="common" />
+
+       <property name="gwt.lib.dir" location="${vaadin.basedir}/../gwt-libs" />
+
+       <property name="gwt.user.jar" location="${gwt.lib.dir}/gwt-user.jar" />
+       <property name="gwt.dev.jar" location="${gwt.lib.dir}/gwt-dev.jar" />
+       <property name="gwt.elemental.jar" location="${gwt.lib.dir}/gwt-elemental.jar" />
+       <property name="gwt.codeserver.jar" location="${gwt.lib.dir}/gwt-codeserver.jar" />
+
+       <available file="${gwt.dev.jar}" property="gwt.dev.jar.found" />
+       <available file="${gwt.user.jar}" property="gwt.user.jar.found" />
+       <available file="${gwt.elemental.jar}" property="gwt.elemental.jar.found" />
+       <available file="${gwt.codeserver.jar}" property="gwt.codeserver.jar.found" />
+
+       <fail unless="gwt.dev.jar.found" message="Could not find gwt-dev.jar" />
+       <fail unless="gwt.user.jar.found" message="Could not find gwt-user.jar" />
+       <fail unless="gwt.elemental.jar.found" message="Could not find gwt-elemental.jar" />
+       <fail unless="gwt.codeserver.jar.found" message="Could not find gwt-codeserver.jar" />
+
+       <property name="gwt.unpack.dir" location="${vaadin.basedir}/build/gwt" />
+
+       <property name="gwt.user.jar.files" location="${gwt.unpack.dir}/gwt-user.jar" />
+       <property name="gwt.dev.jar.files" location="${gwt.unpack.dir}/gwt-dev.jar" />
+       <property name="gwt.elemental.jar.files" location="${gwt.unpack.dir}/gwt-elemental.jar" />
+       <property name="gwt.codeserver.jar.files" location="${gwt.unpack.dir}/gwt-codeserver.jar" />
+
+       <target name="unpack.gwt">
+               <delete dir="${gwt.unpack.dir}" />
+               
+               <mkdir dir="${gwt.user.jar.files}" />
+               <mkdir dir="${gwt.dev.jar.files}" />
+               <mkdir dir="${gwt.elemental.jar.files}" />
+               <mkdir dir="${gwt.codeserver.jar.files}" />
+
+               <unzip dest="${gwt.user.jar.files}" src="${gwt.user.jar}" />
+               <unzip dest="${gwt.dev.jar.files}" src="${gwt.dev.jar}" />
+               <unzip dest="${gwt.elemental.jar.files}" src="${gwt.elemental.jar}" />
+               <unzip dest="${gwt.codeserver.jar.files}" src="${gwt.codeserver.jar}" />
+       </target>
+
+       <union id="client-compiler.gwt.includes">
+               <!-- GWT development JAR contents including many external dependencies 
             (for now) -->
-        <fileset dir="${gwt.dev.jar.files}">
-            <exclude name="META-INF/**" />
-            <exclude name="license*" />
-            <exclude name="LICENSE*" />
-
-            <!-- Used by client and server apparently... -->
-            <exclude name="com/google/gwt/thirdparty/guava/**" />
-
-            <!-- Overridden in Vaadin -->
-            <exclude name="com/google/gwt/dev/About.properties" />
-
-            <!-- external dependencies declared in ixy.xml/pom.xml -->
-            <exclude name="javax/servlet/**" />
-            <exclude name="javax/xml/**" />
-        </fileset>
-
-        <!-- GWT SuperDevMode -->
-        <fileset dir="${gwt.codeserver.jar.files}">
-            <exclude name="META-INF/**" />
-            <include name="**/*.java" />
-            <include name="**/*.classes" />
-        </fileset>
-    </union>
-
-    <union id="client-compiled.gwt.includes">
-        <!-- Precompiled GWT modules (.gwtar file) -->
-        <fileset dir="${gwt.user.jar.files}">
-            <exclude name="META-INF/**" />
-
-            <!-- precompiled GWT modules (.gwtar) -->
-            <include name="**/*.gwtar" />
-            <!-- external dependencies -->
-            <exclude name="javax/servlet/**" />
-            <exclude name="org/w3c/css/sac/**" />
-
-        </fileset>
-    </union>
-
-    <union id="client.gwt.includes">
-        <fileset dir="${gwt.user.jar.files}">
-            <exclude name="META-INF/**" />
-            <!-- precompiled GWT modules (.gwtar) goes into client-compiled -->
-            <exclude name="**/*.gwtar" />
-            <!-- These go into server -->
-            <exclude name="com/google/gwt/*/server/**" />
-            <!-- These go into shared -->
-            <exclude name="com/google/gwt/*/shared/**" />
-            <exclude name="com/google/gwt/*/*/shared/**" />
-            <exclude name="com/google/web/bindery/*/shared/**" />
-
-
-            <!-- external dependencies -->
-            <exclude name="javax/servlet/**" />
-            <exclude name="org/w3c/css/sac/**" />
-        </fileset>
-    </union>
-
-    <union id="shared.gwt.includes">
-        <fileset dir="${gwt.user.jar.files}">
-            <!-- Shared files from user -->
-            <include name="com/google/gwt/*/shared/**" />
-            <include name="com/google/gwt/*/*/shared/**" />
-            <include name="com/google/web/bindery/*/shared/**" />
-        </fileset>
-        <fileset dir="${gwt.dev.jar.files}">
-            <!-- Used by client and server apparently... -->
-            <include name="com/google/gwt/thirdparty/guava/**" />
-        </fileset>
-        <!-- GWT Elemental -->
-        <fileset dir="${gwt.elemental.jar.files}">
-            <exclude name="META-INF/**" />
-        </fileset>
-    </union>
-
-    <union id="server.gwt.includes">
-        <fileset dir="${gwt.user.jar.files}">
-            <!-- Server files from gwt-user -->
-            <include name="com/google/gwt/*/server/**" />
-        </fileset>
-    </union>
+               <fileset dir="${gwt.dev.jar.files}">
+                       <exclude name="META-INF/**" />
+                       <exclude name="license*" />
+                       <exclude name="LICENSE*" />
+
+                       <!-- Used by client and server apparently... -->
+                       <exclude name="com/google/gwt/thirdparty/guava/**" />
+
+                       <!-- Overridden in Vaadin -->
+                       <exclude name="com/google/gwt/dev/About.properties" />
+
+                       <!-- external dependencies declared in ixy.xml/pom.xml -->
+                       <exclude name="javax/servlet/**" />
+                       <exclude name="javax/xml/**" />
+               </fileset>
+
+               <!-- GWT SuperDevMode -->
+               <fileset dir="${gwt.codeserver.jar.files}">
+                       <exclude name="META-INF/**" />
+                       <include name="**/*.java" />
+                       <include name="**/*.classes" />
+               </fileset>
+       </union>
+
+       <union id="client-compiled.gwt.includes">
+               <!-- Precompiled GWT modules (.gwtar file) -->
+               <fileset dir="${gwt.user.jar.files}">
+                       <exclude name="META-INF/**" />
+
+                       <!-- precompiled GWT modules (.gwtar) -->
+                       <include name="**/*.gwtar" />
+                       <!-- external dependencies -->
+                       <exclude name="javax/servlet/**" />
+                       <exclude name="org/w3c/css/sac/**" />
+
+               </fileset>
+       </union>
+
+       <union id="client.gwt.includes">
+               <fileset dir="${gwt.user.jar.files}">
+                       <exclude name="META-INF/**" />
+                       <!-- precompiled GWT modules (.gwtar) goes into client-compiled -->
+                       <exclude name="**/*.gwtar" />
+                       <!-- These go into server -->
+                       <exclude name="com/google/gwt/*/server/**" />
+                       <!-- These go into shared -->
+                       <exclude name="com/google/gwt/*/shared/**" />
+                       <exclude name="com/google/gwt/*/*/shared/**" />
+                       <exclude name="com/google/web/bindery/*/shared/**" />
+
+
+                       <!-- external dependencies -->
+                       <exclude name="javax/servlet/**" />
+                       <exclude name="org/w3c/css/sac/**" />
+               </fileset>
+       </union>
+
+       <union id="shared.gwt.includes">
+               <fileset dir="${gwt.user.jar.files}">
+                       <!-- Shared files from user -->
+                       <include name="com/google/gwt/*/shared/**" />
+                       <include name="com/google/gwt/*/*/shared/**" />
+                       <include name="com/google/web/bindery/*/shared/**" />
+               </fileset>
+               <fileset dir="${gwt.dev.jar.files}">
+                       <!-- Used by client and server apparently... -->
+                       <include name="com/google/gwt/thirdparty/guava/**" />
+               </fileset>
+               <!-- GWT Elemental -->
+               <fileset dir="${gwt.elemental.jar.files}">
+                       <exclude name="META-INF/**" />
+               </fileset>
+       </union>
+
+       <union id="server.gwt.includes">
+               <fileset dir="${gwt.user.jar.files}">
+                       <!-- Server files from gwt-user -->
+                       <include name="com/google/gwt/*/server/**" />
+               </fileset>
+       </union>
 </project>