]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merged file copying target to the WAR target in build.xml
authorHenri Sara <henri.sara@itmill.com>
Thu, 18 Aug 2011 11:26:28 +0000 (11:26 +0000)
committerHenri Sara <henri.sara@itmill.com>
Thu, 18 Aug 2011 11:26:28 +0000 (11:26 +0000)
svn changeset:20471/svn branch:6.7

build/build.xml

index b38e922c72ccf19dc4694a9e90bf83431263d034..edfda7b1009fd39ba1bde64ae4163281fbf833e2 100644 (file)
     <target name="internal-package-war">
         <echo>Building Test WAR</echo>
 
-        <!-- Add the files. -->
-        <antcall target="add-test-war-files" inheritAll="true" inheritRefs="true" />
+        <echo>Adding test class files and resources and launcher configuration.</echo>
+        <copy todir="${output-dir}/WebContent/WEB-INF/classes">
+            <fileset dir="${result-path}/classes">
+                <include name="${toolkit-package}/tests/**/*" />
+                <include name="${toolkit-package}/launcher/**" />
+            </fileset>
+            <fileset dir="${result-path}/src/core">
+                <include name="${toolkit-package}/launcher/**" />
+                <exclude name="${toolkit-package}/launcher/**/*.java" />
+            </fileset>
+               <!-- test resources -->
+            <fileset dir="tests/src">
+                <include name="${toolkit-package}/tests/**/*" />
+               <!-- Pre-processed versions of these copied above -->
+                       <exclude name="**/*.java" />
+                       <exclude name="**/*.html" />
+                       <exclude name="**/*.css" />
+                       <exclude name="**/*.xml" />
+            </fileset>
+        </copy>
 
         <war warfile="${result-path}/${test-war-filename}"> 
             <fileset dir="${output-dir}/WebContent">
         <echo>##teamcity[publishArtifacts '${result-path}/${base-name}-liferay.zip']</echo>
     </target>
 
-    <target name="add-test-war-files">
-        <echo>Adding test class files and launcher configuration.</echo>
-        <copy todir="${output-dir}/WebContent/WEB-INF/classes">
-            <fileset dir="${result-path}/classes">
-                <include name="${toolkit-package}/tests/**/*" />
-                <include name="${toolkit-package}/launcher/**" />
-            </fileset>
-            <fileset dir="${result-path}/src/core">
-                <include name="${toolkit-package}/launcher/**" />
-                <exclude name="${toolkit-package}/launcher/**/*.java" />
-            </fileset>
-        </copy>
-
-        <echo>Adding test resources.</echo>
-        <copy todir="${output-dir}/WebContent/WEB-INF/classes">
-            <fileset dir="tests/src">
-                <include name="${toolkit-package}/tests/**/*" />
-               <!-- These come from pre-processing -->
-                       <exclude name="**/*.java" />
-                       <exclude name="**/*.html" />
-                       <exclude name="**/*.css" />
-                       <exclude name="**/*.xml" />
-            </fileset>
-        </copy>
-    </target>
-
     <!-- Build server-side, client-side, libraries, and tests.                   -->
     <!-- The client-side needs to be built before vaadin.jar, because the vaadin.jar -->
     <!-- require the default widgetset and doing otherwise would build it twice. -->