]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added nojavadoc parameter, test-server, test-tb2, test-tb3 targets.
authorSauli Tähkäpää <sauli@vaadin.com>
Mon, 10 Mar 2014 05:45:55 +0000 (07:45 +0200)
committerSauli Tähkäpää <sauli@vaadin.com>
Mon, 10 Mar 2014 06:10:10 +0000 (08:10 +0200)
Change-Id: I3b0f4ebc247d0cdbf5d8cdd78c3088207e2f8e45

common.xml
uitest/build.xml

index a1c086c57a2f8385396b9478f505257ee3e33482..0c1581fbf38cfa2eb1da66b7f389eb4ab5264595 100644 (file)
     </target>
 
     <target name="javadoc.jar" depends="dependencies, filter.webcontent">
-        <fail unless="result.dir" message="No result.dir parameter given" />
+      <fail unless="result.dir" message="No result.dir parameter given" />
         <fail unless="module.name" message="No module.name parameter given" />
         <property name="src" location="{$result.dir}/../src" />
         <property name="javadoc.dir" value="${result.dir}/javadoc" />
         <property name="javadoc.jar" location="${result.dir}/lib/${module.name}-${vaadin.version}-javadoc.jar" />
 
-        <javadoc destdir="${javadoc.dir}" author="true" version="true" use="true" windowtitle="${module.name}">
-            <packageset dir="${src}" excludes="${classes.exclude}" />
-            <doctitle>&lt;h1>${module.name}&lt;/h1></doctitle>
-            <!-- <header><![CDATA[<script type="text/javascript" src=".html-style/style.js"></script>]]></header> -->
-            <bottom>${javadoc.bottom}</bottom>
-            <link offline="true" href="http://docs.oracle.com/javase/6/docs/api/" packagelistLoc="build/javadoc/j2se-1.6.0" />
-            <link offline="true" href="http://java.sun.com/j2ee/1.4/docs/api/" packagelistLoc="build/javadoc/j2ee-1.4" />
-            <classpath refid="classpath.compile.dependencies" />
-        </javadoc>
-
-        <!-- Create a javadoc jar -->
-        <jar file="${javadoc.jar}" compress="true">
-            <fileset dir="${javadoc.dir}" />
-            <fileset refid="common.files.for.all.jars" />
-        </jar>
-
+        <antcontrib:if>
+            <!--
+              Most straight forward way to skip javadocs is to provide
+              an empty javadoc.jar. Ivy publish won't allow leaving the file
+              out without using conf attribute. Using conf would make internal
+              dependency resolution unnecessary complicated.
+             -->
+               <isset property="nojavadoc" />
+              <then>
+                <jar file="${javadoc.jar}" compress="true">
+                  <fileset refid="common.files.for.all.jars" />
+                </jar>
+              </then>
+            <else>
+              <javadoc destdir="${javadoc.dir}" author="true" version="true" use="true" windowtitle="${module.name}">
+                <packageset dir="${src}" excludes="${classes.exclude}" />
+
+                  <doctitle>&lt;h1>${module.name}&lt;/h1></doctitle>
+                  <!-- <header><![CDATA[<script type="text/javascript" src=".html-style/style.js"></script>]]></header> -->
+                  <bottom>${javadoc.bottom}</bottom>
+                  <link offline="true" href="http://docs.oracle.com/javase/6/docs/api/" packagelistLoc="build/javadoc/j2se-1.6.0" />
+                  <link offline="true" href="http://java.sun.com/j2ee/1.4/docs/api/" packagelistLoc="build/javadoc/j2ee-1.4" />
+                  <classpath refid="classpath.compile.dependencies" />
+              </javadoc>
+
+              <!-- Create a javadoc jar -->
+              <jar file="${javadoc.jar}" compress="true">
+                <fileset dir="${javadoc.dir}" />
+                <fileset refid="common.files.for.all.jars" />
+              </jar>
+            </else>
+        </antcontrib:if>
     </target>
 
     <target name="jar" depends="compile, pom.xml, filter.webcontent">
index 7d5ce867fe51c414cc2b702bb66c2b8d968bac99..b9bb5a4cbd0ee48c2e59c43989316c8a144e70cc 100644 (file)
         </parallel>
     </target>
 
+    <target name="test-server" depends="clean-testbench-errors">
+       <property name="war.file" location="result/artifacts/${vaadin.version}/vaadin-uitest/vaadin-uitest-${vaadin.version}.war" />
+       <parallel>
+         <daemons>
+           <ant antfile="${uitest.dir}/vaadin-server.xml" inheritall="true" inheritrefs="true" target="deploy-and-start" />
+         </daemons>
+         <sequential>
+           <ant antfile="${uitest.dir}/integration_tests.xml" target="integration-test-all" inheritall="false" inheritrefs="false">
+             <property name="demo.war" value="${war.file}" />
+           </ant>
+         </sequential>
+       </parallel>
+    </target>
+
+    <target name="test-tb2" depends="clean-testbench-errors">
+       <property name="war.file" location="result/artifacts/${vaadin.version}/vaadin-uitest/vaadin-uitest-${vaadin.version}.war" />
+       <parallel>
+         <daemons>
+           <ant antfile="${uitest.dir}/vaadin-server.xml" inheritall="true" inheritrefs="true" target="deploy-and-start" />
+         </daemons>
+         <sequential>
+           <ant antfile="${uitest.dir}/test.xml" target="tb2-tests" />
+         </sequential>
+       </parallel>
+    </target>
+
+    <target name="test-tb3" depends="clean-testbench-errors">
+       <property name="war.file" location="result/artifacts/${vaadin.version}/vaadin-uitest/vaadin-uitest-${vaadin.version}.war" />
+       <parallel>
+         <daemons>
+           <ant antfile="${uitest.dir}/vaadin-server.xml" inheritall="true" inheritrefs="true" target="deploy-and-start" />
+         </daemons>
+         <sequential>
+           <ant antfile="${uitest.dir}/tb3test.xml" target="run-all-tb3-tests" inheritall="true" />
+         </sequential>
+       </parallel>
+    </target>
+
     <target name="clean-testbench-errors">
         <fail unless="com.vaadin.testbench.screenshot.directory" message="Define screenshot directory using -Dcom.vaadin.testbench.screenshot.directory" />
         <mkdir dir="${com.vaadin.testbench.screenshot.directory}/errors" />