Changeset c1ac1f6b in vaadin
- Timestamp:
- 12/02/11 13:05:24 (18 months ago)
- Branches:
- master, 7.0, 7.1
- Children:
- 98ec1415
- Parents:
- c7af8ee7
- git-author:
- Mikael Vappula <mikael@…> (12/02/11 13:05:24)
- git-committer:
- Mikael Vappula <mikael@…> (12/02/11 13:05:24)
- Files:
-
- 1 added
- 6 edited
-
build/build.xml (modified) (7 diffs)
-
build/common.xml (added)
-
build/ivy/ivy.xml (modified) (2 diffs)
-
tests/integration_tests.xml (modified) (3 diffs)
-
tests/ivy.xml (modified) (1 diff)
-
tests/test.xml (modified) (5 diffs)
-
tests/vaadin-server.xml (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
build/build.xml
r46309c47 rc1ac1f6b 7 7 basedir="../" default="package-all"> 8 8 9 <!-- Import common targets --> 10 <import file="./common.xml" /> 11 9 12 <!--Call one of package-* targets unless you understand what you are doing. --> 10 13 <target name="package-all" depends="clean-all, init, build, javadoc, internal-package-war, internal-package-liferay, differences" description="Build public packages."> … … 20 23 </target> 21 24 22 <property name="ivy.install.version" value="2.2.0"/> 23 <property name="ivy.jar.name" value="ivy-${ivy.install.version}.jar"/> 24 <property name="ivy.jar.dir" value="${user.home}/.ant/lib" /> 25 <property name="ivy.jar.file" value="${ivy.jar.dir}/${ivy.jar.name}" /> 26 27 <target name="check-ivy-installed"> 28 <available property="ivy.installed" file="${ivy.jar.file}"/> 29 <available property="ivy.installed" classname="org.apache.ivy.ant.IvyConfigure" /> 30 <antcall target="ivy-download" /> 31 </target> 32 33 <target name="ivy-download" unless="ivy.installed"> 34 <mkdir dir="${ivy.jar.dir}"/> 35 <get src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar" dest="${ivy.jar.file}" usetimestamp="true"/> 36 </target> 37 38 <target name="ivy-configure" depends="check-ivy-installed" unless="ivy.resolved"> 39 <!-- Ivy task definitions --> 40 <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${ivy.jar.file}" /> 41 <!-- Ivy settings --> 42 <property name="ivy.settings.file" value="build/ivy/ivysettings.xml" /> 43 <ivy:configure /> 44 </target> 45 46 <target name="ivy-resolve" depends="ivy-configure" unless="ivy.resolved"> 25 <target name="init-deps" depends="common.init-deps" > 47 26 <property name="ivy.resolved" value="1" /> 48 <ivy:resolve file="build/ivy/ivy.xml" resolveid="common"/> 49 <ivy:cachepath pathid="compile.classpath" conf="compile"/> 50 <ivy:cachepath pathid="client-side.compile.classpath" conf="client-side.compile"/> 51 <ivy:cachepath pathid="test.runtime.classpath" conf="test.runtime"/> 52 <ivy:cachepath pathid="taskdefs.classpath" conf="ant-tasks"/> 53 </target> 54 55 <target name="init-taskdefs" depends="ivy-resolve"> 56 <echo>Loading Ant tasks</echo> 57 58 <taskdef resource="emma_ant.properties" classpathref="taskdefs.classpath" /> 59 60 <!-- ant contrib required for flow control (for loop, if, property override) --> 61 <!-- Note that we have to use a namespace to avoid clash when running sub-ant. --> 62 <taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" 63 classpathref="taskdefs.classpath" /> 64 65 <!-- ant contrib for Maven integration --> 66 <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" 67 uri="antlib:org.apache.maven.artifact.ant" classpathref="taskdefs.classpath" /> 68 </target> 69 70 27 <ivy:resolve file="build/ivy/ivy.xml" resolveid="common" conf="ss.compile, cs.compile, ss.test.runtime"/> 28 <ivy:cachepath pathid="compile.classpath" conf="ss.compile"/> 29 <ivy:cachepath pathid="client-side.compile.classpath" conf="cs.compile"/> 30 <ivy:cachepath pathid="test.runtime.classpath" conf="ss.test.runtime"/> 31 </target> 32 71 33 <!-- Clean results - - - - - - - - - - - - - - - - - - - - - - - - - --> 72 34 <target name="clean-result" depends=""> … … 100 62 <!-- ================================================================== --> 101 63 102 <target name="init" depends="init- taskdefs">64 <target name="init" depends="init-deps"> 103 65 <!-- Current timestamp in different formats. --> 104 66 <tstamp> … … 474 436 <target name="compile-widgetset-generator" depends="init, preprocess-src, compile-java"/> 475 437 476 <target name="compile-widgetset" de scription="Compiles the widgetset given as the first parameter" depends="ivy-resolve">438 <target name="compile-widgetset" depends="init-deps" description="Compiles the widgetset given as the first parameter"> 477 439 <fail unless="widgetset" message="No widgetset parameter set"/> 478 440 <echo>Compiling widgetset ${widgetset}. Output directory: ${widgetsets-output-dir}</echo> … … 934 896 935 897 <!-- Assumes java classes have been compiled but depends does not work out well as this is run from a <parallel> task--> 936 <target name="server-side-tests" depends="init- taskdefs" unless="tests.serverside.skip">898 <target name="server-side-tests" depends="init-deps" unless="tests.serverside.skip"> 937 899 <emma enabled="${emma.enabled}" > 938 900 <instr instrpath="${result-path}/classes" … … 978 940 979 941 <!-- Assumes java classes have been compiled but depends does not work out well as this is run from a <parallel> task--> 980 <target name="testbench-tests" depends="init"unless="tests.testbench.skip">942 <target name="testbench-tests" unless="tests.testbench.skip"> 981 943 <fail unless="product-file" message="The 'product-file' property must be defined."/> 982 944 <fail unless="version" message="The 'version' property must be defined."/> … … 1031 993 1032 994 <!-- Assumes java classes have been compiled but depends does not work out well as this is run from a <parallel> task--> 1033 <target name="integration-tests" depends="init- taskdefs" unless="tests.integration.skip">995 <target name="integration-tests" depends="init-deps" unless="tests.integration.skip"> 1034 996 <!-- Parameters for the test.xml script. --> 1035 997 <fail unless="com.vaadin.testbench.tester.host" message="The 'com.vaadin.testbench.tester.host' property must be defined."/> -
build/ivy/ivy.xml
rc7af8ee7 rc1ac1f6b 5 5 <info organisation="com.vaadin" module="vaadin"/> 6 6 <configurations > 7 <conf name="compile" extends="client-side.compile" description="Server side compilation dependencies" visibility="private"/> 8 <conf name="client-side.compile" description="Client side compilation dependencies" visibility="private"/> 9 <conf name="test.runtime" description="Test runtime dependencies" visibility="private"/> 10 <conf name="ant-tasks" description="Ant task definitions" visibility="private" /> 11 <conf name="emma" description="Emma code coverage" visibility="private" /> 7 <conf name="ss.compile" extends="cs.compile" description="Server side compilation dependencies" visibility="private"/> 8 <conf name="cs.compile" description="Client side compilation dependencies" visibility="private"/> 9 <conf name="ss.test.runtime" description="Test runtime dependencies" visibility="private"/> 10 <conf name="taskdefs" description="Ant task definitions" visibility="private" /> 12 11 </configurations> 13 12 <publications /> 14 <dependencies defaultconf="compile" defaultconfmapping="compile->master"> 15 16 <!-- Servlet 2.3 API--> 17 <!-- 18 <dependency org="javax.servlet" name="servlet-api" rev="2.3" /> 19 --> 13 <dependencies defaultconf="ss.compile" defaultconfmapping="ss.compile->master"> 14 20 15 <!-- Liferay Portal Service --> 21 16 <dependency org="com.liferay.portal" name="portal-service" rev="6.0.2" /> … … 26 21 27 22 <!-- GWT user with dependencies (validation-api) --> 28 <dependency org="com.google.gwt" name="gwt-user" rev="2.4.0" conf="c lient-side.compile->master" />29 <dependency org="javax.validation" name="validation-api" rev="1.0.0.GA" conf="c lient-side.compile->master,sources" />23 <dependency org="com.google.gwt" name="gwt-user" rev="2.4.0" conf="cs.compile->master" /> 24 <dependency org="javax.validation" name="validation-api" rev="1.0.0.GA" conf="cs.compile->master,sources" /> 30 25 <!-- GWT dev (incl. servlet-api 2.4 classes) --> 31 <dependency org="com.google.gwt" name="gwt-dev" rev="2.4.0" conf="c lient-side.compile->master" />26 <dependency org="com.google.gwt" name="gwt-dev" rev="2.4.0" conf="cs.compile->master" /> 32 27 33 28 <!-- Test frameworks & related --> 34 <dependency org="junit" name="junit" rev="4.5" conf=" test.runtime -> master"/>35 <dependency org="org.easymock" name="easymock" rev="3.0" conf=" test.runtime -> master, runtime(*)"/>36 <dependency org="org.hsqldb" name="hsqldb" rev="2.2.6" conf=" test.runtime -> master, runtime(*)"/>29 <dependency org="junit" name="junit" rev="4.5" conf="ss.test.runtime -> master"/> 30 <dependency org="org.easymock" name="easymock" rev="3.0" conf="ss.test.runtime -> master, runtime(*)"/> 31 <dependency org="org.hsqldb" name="hsqldb" rev="2.2.6" conf="ss.test.runtime -> master, runtime(*)"/> 37 32 38 33 <!-- Ant tasks --> 39 <dependency org="ant-contrib" name="ant-contrib" rev="1.0b3" conf=" ant-tasks ->master"/>40 <dependency org="org.apache.maven" name="maven-ant-tasks" rev="2.0.10" conf=" ant-tasks ->master"/>34 <dependency org="ant-contrib" name="ant-contrib" rev="1.0b3" conf="taskdefs ->master"/> 35 <dependency org="org.apache.maven" name="maven-ant-tasks" rev="2.0.10" conf="taskdefs ->master"/> 41 36 42 37 <!-- Emma --> 43 <dependency org="emma" name="emma_ant" rev="2.0.5312" conf=" test.runtime,ant-tasks ->master"/>44 <dependency org="emma" name="emma" rev="2.0.5312-patched" conf=" test.runtime,ant-tasks,emma->*"/>38 <dependency org="emma" name="emma_ant" rev="2.0.5312" conf="ss.test.runtime,taskdefs ->master"/> 39 <dependency org="emma" name="emma" rev="2.0.5312-patched" conf="ss.test.runtime,taskdefs ->*"/> 45 40 46 41 </dependencies> -
tests/integration_tests.xml
re578248b rc1ac1f6b 2 2 3 3 <project name="Vaadin Integration Tests" basedir="." default="integration-test-all"> 4 5 <!-- Import common targets --> 6 <import file="../build/common.xml" /> 4 7 5 8 <!-- Target deploying demo.war --> … … 28 31 <property name="user" value="${test.integration.user}" /> 29 32 <property name="passphrase" value="" /> 30 31 <!-- add ant contrib --> 32 <taskdef resource="net/sf/antcontrib/antcontrib.properties"> 33 <classpath> 34 <pathelement location="../build/lib/ant-contrib-1.0b3.jar"/> 35 </classpath> 36 </taskdef> 37 33 38 34 <!-- Upload war to deploy to ssh host --> 39 35 <target name="integration-test-upload-demo"> … … 262 258 263 259 <!-- Upload demo, clean error screenshots and test deployment on all servers --> 264 <target name="integration-test-all" >260 <target name="integration-test-all" depends="common.init-deps"> 265 261 266 262 <parallel> -
tests/ivy.xml
r46309c47 rc1ac1f6b 4 4 5 5 <info organisation="com.vaadin" module="tests"/> 6 <configurations defaultconfmapping="*->jetty">6 <configurations> 7 7 <conf name="jetty" visibility="private" /> 8 <conf name="emma" visibility="private" /> 9 <conf name="server" visibility="private" /> 8 10 </configurations> 9 11 <publications /> 10 12 <dependencies> 11 <dependency org="org.mortbay.jetty" name="jetty" rev="6.1.7" conf="jetty->default(*)" /> 13 <dependency org="org.mortbay.jetty" name="jetty" rev="6.1.7" conf="server,jetty->default(*)" /> 14 <dependency org="emma" name="emma" rev="2.0.5312-patched" conf="server,emma -> default(*)"/> 12 15 </dependencies> 13 16 </ivy-module> -
tests/test.xml
r46309c47 rc1ac1f6b 3 3 xmlns:ivy="antlib:org.apache.ivy.ant" 4 4 name="Run Vaadin Testbench Tests" basedir="." default="run-and-clean-up"> 5 6 <!-- Import common targets --> 7 <import file="../build/common.xml" /> 8 <!-- Import targets for server management --> 9 <import file="vaadin-server.xml" as="server"/> 10 5 11 <!-- ================================================================== --> 6 12 <!-- Configuration --> … … 29 35 30 36 <!-- Temporary output directory, created and removed by this script --> 31 <!-- <property name="test-output-dir" value="../build/test-output" /> --> 32 <fail unless="test-output-dir" message="The 'test-output-dir' property must be defined." /> 33 34 <!-- Include targets for server management --> 35 <include file="vaadin-server.xml" as="server"/> 37 <fail unless="test-output-dir" message="The 'test-output-dir' property must be defined." /> 36 38 37 39 <property name="class-dir" value="${test-output-dir}/classes" /> 38 40 39 <!-- classpath must include test bench jar and its dependencies --> 40 <!-- TODO emma--> 41 <path id="classpath"> 42 <fileset dir="${com.vaadin.testbench.lib.dir}" includes="**/*.jar" /> 43 <fileset dir="../build/lib" includes="emma*.jar" /> 44 </path> 41 <target name="initialize" depends="common.init-deps"> 42 <ivy:resolve conf="emma"/> 43 <ivy:cachepath pathid="emma.lib" conf="emma" /> 44 <!-- classpath must include test bench jar and its dependencies --> 45 <path id="classpath"> 46 <fileset dir="${com.vaadin.testbench.lib.dir}" includes="**/*.jar" /> 47 <path refid="emma.lib" /> 48 </path> 49 </target> 45 50 46 51 <!-- fileset containing all TestBench tests to run --> … … 98 103 <antcall target="execute-tests"> 99 104 <param name="target" value="@{target}" /> 105 <reference refid="classpath" /> 100 106 </antcall> 101 107 </sequential> … … 160 166 161 167 <!-- The default target. --> 162 <target name="run-and-clean-up" depends="check-parameters,remove-error-screens,run-tests"> 163 </target> 168 <target name="run-and-clean-up" depends="check-parameters,remove-error-screens,run-tests" /> 164 169 165 170 <!-- Also starts the server. --> … … 167 172 <parallel> 168 173 <daemons> 169 <ant call inheritall="true" inheritrefs="true" target="server.deploy-and-start" />174 <ant antfile="vaadin-server.xml" inheritall="true" inheritrefs="true" target="deploy-and-start" /> 170 175 </daemons> 171 176 <sequential> -
tests/vaadin-server.xml
r46309c47 rc1ac1f6b 3 3 xmlns:ivy="antlib:org.apache.ivy.ant" 4 4 name="vaadin-server" 5 default="deploy-and-start"> 5 default="deploy-and-start" basedir="."> 6 7 <!-- Import common targets --> 8 <import file="../build/common.xml" /> 6 9 7 10 <target name="check-params"> … … 12 15 <property name="webroot" value="${testing.testarea}/${package.name}/WebContent" /> 13 16 </target> 14 15 <target name="ivy-resolve">16 <ivy:resolve file="ivy.xml" resolveid="tests"/>17 <ivy:cachepath pathid="jetty.lib" conf="jetty" resolveid="tests" />18 <!-- Emma libs from "common" resolve -->19 <ivy:cachepath pathid="emma.lib" conf="emma" resolveid="common"/>20 </target>21 17 22 18 <target name="prepare-testing-area" depends="check-params"> … … 32 28 </target> 33 29 34 <target name="deploy-and-start" depends="i vy-resolve, prepare-testing-area">30 <target name="deploy-and-start" depends="init-deps, prepare-testing-area"> 35 31 <property name="webroot" value="${testing.testarea}/${package.name}/WebContent"></property> 32 33 <ivy:resolve file="ivy.xml"/> 34 <ivy:cachepath pathid="server" conf="server" /> 36 35 <java classname="com.vaadin.launcher.DemoLauncher" fork="yes" dir="${testing.testarea}/${package.name}" resultproperty="server.start.result"> 37 36 <arg value="--nogui=1" /> … … 39 38 <path location="${webroot}/WEB-INF/classes" /> 40 39 <fileset dir="${webroot}/WEB-INF/lib/" includes="*.jar" /> 41 <path refid="jetty.lib" /> 42 <path refid="emma.lib" /> 40 <path refid="server" /> 43 41 </classpath> 44 42 <jvmarg value="-Demma.coverage.out.file=${testing.testarea}/${package.name}/war.ec"/> … … 49 47 <target name="wait-for-startup"> 50 48 <echo>Waiting for Servlet Container to start up.</echo> 51 <waitfor maxwait="30" maxwaitunit="second" checkevery=" 1" checkeveryunit="second" timeoutproperty="server.start.failed">49 <waitfor maxwait="30" maxwaitunit="second" checkevery="3" checkeveryunit="second" timeoutproperty="server.start.failed"> 52 50 <http url="http://localhost:8888"/> 53 51 </waitfor>
Note: See TracChangeset
for help on using the changeset viewer.
