diff options
author | Artur Signell <artur@vaadin.com> | 2012-09-04 16:28:49 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-09 11:23:19 +0300 |
commit | e50ca7fe96d11a5c3f2328c4fdb76905e68c5062 (patch) | |
tree | cd472d622a7a40a8aa126454fc9c6227e8efe798 /uitest/build.xml | |
parent | 45e4dc9fdcc96da44c0b96fde0bc146d8915041b (diff) | |
download | vaadin-framework-e50ca7fe96d11a5c3f2328c4fdb76905e68c5062.tar.gz vaadin-framework-e50ca7fe96d11a5c3f2328c4fdb76905e68c5062.zip |
Include compiled TestingWidgetSet in war (#9299)
Diffstat (limited to 'uitest/build.xml')
-rw-r--r-- | uitest/build.xml | 52 |
1 files changed, 41 insertions, 11 deletions
diff --git a/uitest/build.xml b/uitest/build.xml index 7d0f2ca9d1..a97886dc8b 100644 --- a/uitest/build.xml +++ b/uitest/build.xml @@ -49,7 +49,47 @@ </javac> </target> - <target name="war" depends="compile, dependencies"> + <target name="testing-widgetset" depends="dependencies,compile"> + <property name="module" value="com.vaadin.tests.widgetset.TestingWidgetSet"/> + <property name="style" value="OBF" /> + <property name="localWorkers" value="2" /> + <property name="extraParams" value="" /> + <property name="module.output.dir" location="${result.dir}/VAADIN/widgetsets" /> + <property name="work.dir" location="${result.dir}/work" /> + + <mkdir dir="${module.output.dir}" /> + + <echo>Compiling ${module} to ${module.output.dir}</echo> + + <!-- compile the module --> + <java classname="com.google.gwt.dev.Compiler" classpathref="classpath.compile.dependencies" failonerror="yes" fork="yes" maxmemory="512m"> + <classpath location="src" /> + <classpath location="${classes}" /> + <arg value="-workDir" /> + <arg value="${work.dir}" /> + <arg value="-logLevel" /> + <arg value="TRACE" /> + <arg value="-war" /> + <arg value="${module.output.dir}" /> + <arg value="-style" /> + <arg value="${style}" /> + + <arg value="-localWorkers" /> + <arg value="${localWorkers}" /> + <arg value="-strict" /> + <arg line="${extraParams}" /> + <arg value="${module}" /> + + <sysproperty key="vFailIfNotSerializable" value="true" /> + + <jvmarg value="-Xss8M" /> + <jvmarg value="-XX:MaxPermSize=256M" /> + <jvmarg value="-Djava.awt.headless=true" /> + </java> + + </target> + + <target name="war" depends="dependencies, compile, testing-widgetset"> <property name="result.dir" location="result" /> <property name="classes" location="${result.dir}/classes" /> <property name="WebContent.dir" location="${vaadin.basedir}/WebContent" /> @@ -66,9 +106,6 @@ </copy> <war destfile="${result.war}" duplicate="fail" index="true"> - <manifest> - <attribute name="Class-Path" value="WEB-INF/classes" /> - </manifest> <fileset refid="common.files.for.all.jars" /> <fileset dir="${WebContent.dir}"> <include name="statictestfiles/**" /> @@ -77,13 +114,6 @@ </fileset> <classes dir="${classes}" /> <lib dir="${deps.dir}" /> - <!-- Include files required by the DemoLauncher/DevelopmentServerLauncher --> - <!--<fileset dir="src"> - <include name="**/launcher/jetty-webdefault.xml" /> - <include name="**/launcher/keystore" /> - </fileset> - --> - </war> </target> |