]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merged recent changes to build and test scripts from 6.1 to 6.2 branch.
authorMarko Grönroos <magi@iki.fi>
Wed, 23 Sep 2009 14:16:46 +0000 (14:16 +0000)
committerMarko Grönroos <magi@iki.fi>
Wed, 23 Sep 2009 14:16:46 +0000 (14:16 +0000)
svn changeset:8894/svn branch:6.2

build/build.xml
tests/test.xml

index e69ebed14d74c9c705989f045ceef76dce31441e..329266d7341ea94092dd6299054590f43d0fea33 100644 (file)
                <echo>Compiled ColorPickerWidgetSet</echo>
        </target>
 
-       <!-- Builds the client-side engine, i.e., the widgetsets. -->
-       <target name="compile-client-side" depends="compile-widgetset-default, compile-widgetset-portal-default, compile-widgetset-reserver, compile-widgetset-sampler, compile-widgetset-colorpicker, compile-widgetset-coverflow">
-        <!-- Building the widgetsets is currently done sequentially, because
-            parallel compilation takes too much memory for most machines. -->
+    <!-- Builds the client-side engine, i.e., the widgetsets sequentially. -->
+       <target name="compile-client-side-sequential" unless="build.parallel">
+               <echo>Compiling widget sets sequentially.</echo>
+        <!-- We can't call these with 'depends' because of the 'unless' specifier. -->
+               <subant antfile="build.xml" target="compile-widgetset-default" inheritall="true" buildpath="build" />
+               <subant antfile="build.xml" target="compile-widgetset-portal-default" inheritall="true" buildpath="build" />
+               <subant antfile="build.xml" target="compile-widgetset-reserver" inheritall="true" buildpath="build" />
+               <subant antfile="build.xml" target="compile-widgetset-sampler" inheritall="true" buildpath="build" />
+               <subant antfile="build.xml" target="compile-widgetset-colorpicker" inheritall="true" buildpath="build" />
+               <subant antfile="build.xml" target="compile-widgetset-coverflow" inheritall="true" buildpath="build" />
        </target>
 
+       <!-- Builds the client-side engine, i.e., the widgetsets in parallel. -->
+       <target name="compile-client-side-parallel" if="build.parallel">
+               <echo>Compiling widget sets in parallel.</echo>
+               <parallel threadsperprocessor="1">
+                       <subant antfile="build.xml" target="compile-widgetset-default" inheritall="true" buildpath="build" />
+                       <subant antfile="build.xml" target="compile-widgetset-portal-default" inheritall="true" buildpath="build" />
+                       <subant antfile="build.xml" target="compile-widgetset-reserver" inheritall="true" buildpath="build" />
+                       <subant antfile="build.xml" target="compile-widgetset-sampler" inheritall="true" buildpath="build" />
+                       <subant antfile="build.xml" target="compile-widgetset-colorpicker" inheritall="true" buildpath="build" />
+                       <subant antfile="build.xml" target="compile-widgetset-coverflow" inheritall="true" buildpath="build" />
+               </parallel>
+       </target>
+
+    <!-- Build either sequentially or in parallel,   -->
+       <!-- depending on the 'build-parallel' property. -->
+       <target name="compile-client-side" depends="compile-client-side-sequential, compile-client-side-parallel"/>
+
        <!-- Definitions for building local components, i.e., not for an installation package. -->
        <target name="init-nonpackage" depends="init-platform">
                <property file="build/VERSION.properties" />
       <!-- Parameters for the test.xml script. -->
       <fail unless="com.vaadin.testbench.tester.host" message="The 'com.vaadin.testbench.tester.host' property must be defined."/>
       <fail unless="com.vaadin.testbench.deployment.url" message="The 'com.vaadin.testbench.deployment.url' property must be defined."/>
+      <fail unless="com.vaadin.testbench.lib.dir" message="The 'com.vaadin.testbench.lib.dir' property must be defined."/>
 
       <property name="package.platform.name" value="${product-file}-${package-platform}-${version}"/>
 
           <property name="package.name" value="${package.platform.name}"/>
           <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}"/>
           <property name="com.vaadin.testbench.deployment.url" value="${com.vaadin.testbench.deployment.url}"/>
+          <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}"/>
       </ant>
     </target>
 
         <echo>##teamcity[testSuiteFinished name='com.vaadin.tests.test-framework']</echo>
     </target>
 </project>
+
+<!-- These are for emacs. -->
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: xml
+sgml-omittag:nil
+sgml-shorttag:nil
+sgml-namecase-general:nil
+sgml-general-insert-case:lower
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:4
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:("/etc/sgml/catalog" "/usr/share/xemacs21/xemacs-packages/etc/psgml-dtds/CATALOG")
+sgml-local-ecat-files:("ECAT" "~/sgml/ECAT" "/usr/share/sgml/ECAT" "/usr/local/share/sgml/ECAT" "/usr/local/lib/sgml/ECAT")
+End:
+-->
index 7ac2aca77283f0dacdbaa06f43800260bdf17d1b..91bb5d675662a88405acb2b6488cbd282673f727 100644 (file)
@@ -1,10 +1,9 @@
 <?xml version="1.0"?>
 
-<project name="Testing Testing Tools" basedir="." default="run-and-clean-up">
+<project name="Run Vaadin Testbench Tests" basedir="." default="run-and-clean-up">
     <!-- ================================================================== -->
     <!-- Configuration                                                      -->
     <!-- ================================================================== -->
-       <property name="lib.dir" value="../build/lib/testbench" />
        <!-- Temporary output directory, created and removed by this script -->
        <property name="test-output-dir" value="../build/test-output" />
        <property name="class-dir" value="${test-output-dir}/classes" />
@@ -13,7 +12,7 @@
        
        <!-- classpath must include test bench jar and its dependencies -->
        <path id="classpath">
-               <fileset dir="${lib.dir}" includes="**/*.jar" />
+               <fileset dir="${com.vaadin.testbench.lib.dir}" includes="**/*.jar" />
        </path>
 
        <!-- fileset containing all tests to run -->
@@ -86,6 +85,7 @@
        
        <target name="check-parameters">
         <fail unless="output-dir" message="The 'output-dir' (usually build/result/vaadin-xxx) should be given to test script."/>
+        <fail unless="com.vaadin.testbench.lib.dir" message="The 'com.vaadin.testbench.lib.dir' property must be defined."/>
         <fail unless="com.vaadin.testbench.tester.host" message="The 'com.vaadin.testbench.tester.host' property must be defined."/>
         <fail unless="com.vaadin.testbench.deployment.url" message="The 'com.vaadin.testbench.deployment.url' property must be defined."/>
     </target>