diff options
author | Henri Sara <henri.sara@itmill.com> | 2011-08-18 11:26:28 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2011-08-18 11:26:28 +0000 |
commit | 8614875170488d614366127c34ccbf9928c55fae (patch) | |
tree | f234a64521bf6660ae5f364e1def4c1b89fc4c02 /build | |
parent | d9a92db2f6daa9e74431456fd4a94ea54481a2e4 (diff) | |
download | vaadin-framework-8614875170488d614366127c34ccbf9928c55fae.tar.gz vaadin-framework-8614875170488d614366127c34ccbf9928c55fae.zip |
Merged file copying target to the WAR target in build.xml
svn changeset:20471/svn branch:6.7
Diffstat (limited to 'build')
-rw-r--r-- | build/build.xml | 48 |
1 files changed, 20 insertions, 28 deletions
diff --git a/build/build.xml b/build/build.xml index b38e922c72..edfda7b100 100644 --- a/build/build.xml +++ b/build/build.xml @@ -171,8 +171,26 @@ <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"> @@ -218,32 +236,6 @@ <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. --> |