]> source.dussan.org Git - vaadin-framework.git/commitdiff
Include compiled TestingWidgetSet in war (#9299)
authorArtur Signell <artur@vaadin.com>
Tue, 4 Sep 2012 13:28:49 +0000 (16:28 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 9 Sep 2012 08:23:19 +0000 (11:23 +0300)
uitest/build.xml
uitest/ivy.xml

index 7d0f2ca9d1bd8f9e930aca170c15fc4b22d9db97..a97886dc8b56e8818a56481db59a7dab155c5ba7 100644 (file)
                </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" />
                </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/**" />
                        </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>
index 5dbb5dd6fcbf008b40e7c9d84d92e14d24e3a116..6cb7fc905093758b57dc8d6c2e7120353a087928 100644 (file)
@@ -21,7 +21,7 @@
             rev="2.0" conf="build-provided,ide -> default" />
 
         <dependency org="javax.validation" name="validation-api"
-            rev="1.0.0.GA" conf="build,ide -> default" />
+            rev="1.0.0.GA" conf="build,ide -> default,sources" />
         <!--Servlet API version 2.5 -->
         <dependency org="javax.servlet" name="servlet-api"
             rev="2.5" conf="build-provided,ide -> default" />
             rev="${vaadin.version}" conf="build->build"></dependency>
         <dependency org="com.vaadin" name="vaadin-themes-compiled"
             rev="${vaadin.version}" conf="build->build"></dependency>
+            
+        <!-- For compiling TestingWidgetSet -->
+        <dependency org="com.vaadin" name="vaadin-client-compiler"
+            rev="${vaadin.version}" conf="build-provided-> build"></dependency>
 
         <!-- Newest Jetty does not work with Ivy currently (orbit -> jar 
             mapping problem) -->