gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="user" default="build" basedir="."> |
| 2 | <property name="gwt.root" location=".." /> |
| 3 | <property name="project.tail" value="user" /> |
| 4 | <import file="${gwt.root}/common.ant.xml" /> |
| 5 | |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 6 | <!-- |
| 7 | Default hosted mode test cases |
| 8 | --> |
| 9 | <fileset id="default.hosted.tests" dir="${javac.junit.out}"> |
| 10 | <!-- |
| 11 | Causes a security dialog to popup and subsequently blocks testing |
gwt.team.scottb | d0f6c56 | 2006-12-11 17:28:15 +0000 | [diff] [blame] | 12 | --> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 13 | <exclude name="com/google/gwt/user/client/ui/FormPanelTest.class" /> |
| 14 | |
| 15 | <!-- |
| 16 | Need to confirm with JGW if this should still be disabled |
| 17 | --> |
| 18 | <exclude name="com/google/gwt/user/client/ui/HistoryTest.class" /> |
| 19 | |
| 20 | <include name="**/*Test.class" /> |
| 21 | </fileset> |
| 22 | |
| 23 | <!-- |
| 24 | Default web mode test cases |
| 25 | --> |
| 26 | <fileset id="default.web.tests" dir="${javac.junit.out}"> |
| 27 | <!-- |
gwt.team.mmendez | ac0bccb | 2006-12-11 18:40:21 +0000 | [diff] [blame] | 28 | Causes a security dialog to popup and subsequently blocks testing |
| 29 | --> |
| 30 | <exclude name="com/google/gwt/user/client/ui/FormPanelTest.class" /> |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 31 | |
gwt.team.mmendez | ac0bccb | 2006-12-11 18:40:21 +0000 | [diff] [blame] | 32 | <!-- |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 33 | Need to confirm with JGW if this should still be disabled |
| 34 | --> |
| 35 | <exclude name="com/google/gwt/user/client/ui/HistoryTest.class" /> |
| 36 | |
| 37 | <!-- |
| 38 | Safari Failures: |
| 39 | Testcase: testFunctionCaching took 0.112 sec |
| 40 | Caused an ERROR |
| 41 | JavaScript RangeError exception: Maximum call stack size exceeded. |
| 42 | com.google.gwt.core.client.JavaScriptException: JavaScript RangeError exception: Maximum call stack size exceeded. |
| 43 | |
| 44 | Linux Web Mode Failures: |
| 45 | Testcase: testFunctionCaching took 1.004 sec |
| 46 | Caused an ERROR |
| 47 | JavaScript InternalError exception: too much recursion |
| 48 | com.google.gwt.core.client.JavaScriptException: JavaScript InternalError exception: too much recursion |
| 49 | --> |
| 50 | <exclude name="com/google/gwt/dev/jjs/test/HostedTest.class" /> |
| 51 | |
| 52 | <!-- |
| 53 | Safari Failures: |
| 54 | Testcase: testRecursion took 1.003 sec |
| 55 | Caused an ERROR |
| 56 | JavaScript RangeError exception: Maximum call stack size exceeded. |
| 57 | com.google.gwt.core.client.JavaScriptException: JavaScript RangeError exception: Maximum call stack size exceeded. |
| 58 | --> |
| 59 | <exclude name="com/google/gwt/dev/jjs/test/MethodCallTest.class" /> |
| 60 | |
| 61 | <!-- |
| 62 | Safari Failures: |
| 63 | Testcase: testJso took 1.005 sec |
| 64 | Caused an ERROR |
| 65 | JavaScript RangeError exception: Maximum call stack size exceeded. |
| 66 | com.google.gwt.core.client.JavaScriptException: JavaScript RangeError exception: Maximum call stack size exceeded. |
| 67 | --> |
| 68 | <exclude name="com/google/gwt/dev/jjs/test/MiscellaneousTest.class" /> |
| 69 | |
| 70 | <include name="**/*Test.class" /> |
| 71 | </fileset> |
| 72 | |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 73 | <!-- Platform shouldn't matter here, just picking one --> |
| 74 | <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev-linux.jar" /> |
| 75 | |
gwt.team.scottb | c4700b8 | 2006-12-12 11:23:41 +0000 | [diff] [blame] | 76 | <target name="compile" description="Compile all class files"> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 77 | <mkdir dir="${javac.out}" /> |
| 78 | <gwt.javac> |
| 79 | <classpath> |
gwt.team.scottb | c4700b8 | 2006-12-12 11:23:41 +0000 | [diff] [blame] | 80 | <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.4.jar" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 81 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
| 82 | <pathelement location="${gwt.dev.jar}" /> |
| 83 | </classpath> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 84 | </gwt.javac> |
| 85 | |
| 86 | <!-- Build the BrowserManagerServer_Stub to allow remote browser testing --> |
| 87 | <rmic base="${javac.out}" classname="com.google.gwt.junit.remote.BrowserManagerServer"> |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 88 | <compilerarg value="-v1.2" /> |
| 89 | </rmic> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 90 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 91 | |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 92 | <target name="compile.tests" description="Compiles the test code for this project"> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 93 | <mkdir dir="${javac.junit.out}" /> |
| 94 | <gwt.javac srcdir="test" destdir="${javac.junit.out}"> |
| 95 | <classpath> |
| 96 | <pathelement location="${javac.out}" /> |
gwt.team.scottb | e18b95c | 2006-12-21 22:35:49 +0000 | [diff] [blame] | 97 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 98 | <pathelement location="${gwt.dev.staging.jar}" /> |
| 99 | </classpath> |
| 100 | </gwt.javac> |
| 101 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 102 | |
| 103 | <target name="build" depends="compile" description="Build and package this project"> |
| 104 | <mkdir dir="${gwt.build.lib}" /> |
| 105 | <gwt.jar> |
gwt.team.scottb | b8fc337 | 2006-12-11 19:30:10 +0000 | [diff] [blame] | 106 | <fileset dir="src" excludes="**/package.html" /> |
| 107 | <fileset dir="super" excludes="**/package.html" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 108 | <fileset dir="${javac.out}" /> |
gwt.team.scottb | c4700b8 | 2006-12-12 11:23:41 +0000 | [diff] [blame] | 109 | <zipfileset src="${gwt.tools.lib}/tomcat/servlet-api-2.4.jar" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 110 | </gwt.jar> |
| 111 | </target> |
| 112 | |
| 113 | <target name="checkstyle" description="Static analysis of source"> |
| 114 | <gwt.checkstyle> |
| 115 | <fileset dir="super/com/google/gwt/emul" /> |
| 116 | <fileset dir="super/com/google/gwt/junit/translatable" /> |
| 117 | </gwt.checkstyle> |
| 118 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 119 | |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 120 | <target name="remoteweb-test" description="Run a remoteweb test at the given host and path"> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 121 | <echo message="Performing remote browser testing at rmi://${gwt.remote.browser}" /> |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 122 | <gwt.junit test.args="-port ${gwt.junit.port} -out www -web -remoteweb rmi://${gwt.remote.browser}" test.out="${junit.out}/${gwt.remote.browser}" test.cases="default.web.tests" /> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 123 | </target> |
| 124 | |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 125 | <target name="test" depends="compile, compile.tests" description="Run hosted-mode, web-mode and remoteweb tests for this project."> |
| 126 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 127 | |
| 128 | <!-- |
| 129 | Run hosted and web mode tests for the platform on which this build |
| 130 | is executing |
| 131 | --> |
| 132 | <parallel threadcount="1"> |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 133 | <gwt.junit test.args="-port ${gwt.junit.port}" test.out="${junit.out}/${build.host.platform}-hosted-mode" test.cases="default.hosted.tests" /> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 134 | |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 135 | <gwt.junit test.args="-port ${gwt.junit.port} -out www -web" test.out="${junit.out}/${build.host.platform}-web-mode" test.cases="default.web.tests" /> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 136 | |
| 137 | <!-- |
| 138 | Run remote browser testing for the comma delimited list of remote browsers |
| 139 | --> |
gwt.team.scottb | 9fba66c | 2006-12-11 18:50:42 +0000 | [diff] [blame] | 140 | <foreach list="${gwt.remote.browsers}" delimiter="," parallel="true" maxThreads="1" target="remoteweb-test" param="gwt.remote.browser" /> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 141 | </parallel> |
| 142 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 143 | |
| 144 | <target name="clean" description="Cleans this project's intermediate and output files"> |
| 145 | <delete dir="${project.build}" /> |
| 146 | <delete file="${project.lib}" /> |
| 147 | </target> |
| 148 | |
| 149 | </project> |