blob: 202d5f5863e2f94005c0e3687bf9ecb259daff86 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="user" default="build" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location=".." />
3 <property name="project.tail" value="user" />
4 <property name="test.args" value="" />
fabbott@google.com25305472009-06-10 21:39:00 +00005
jat@google.combf79ddb2009-10-14 07:44:30 +00006 <!-- support old variables names -->
7 <condition property="gwt.hosts.web.remote" value="${gwt.remote.browsers}">
8 <isset property="gwt.remote.browsers" />
9 </condition>
10 <condition property="gwt.hosts.web.selenium" value="${gwt.selenium.hosts}">
11 <isset property="gwt.selenium.hosts" />
12 </condition>
13
jat@google.com57b69402009-10-14 18:08:29 +000014 <!--
15 BrowserManagerServer_Stub compiled using rmic, which doesn't generate
16 full source code
17 -->
jlabanca@google.com81244562009-08-05 19:55:36 +000018 <property name="emma.filter.exclude" value="*BrowserManagerServer_Stub*" />
19
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000020 <import file="${gwt.root}/common.ant.xml" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000021
jat@google.com8cf77ce2009-10-16 01:47:08 +000022 <property name="test.timeout" value="4" />
jlabanca@google.com81244562009-08-05 19:55:36 +000023 <property name="emma.merged.out" value="${junit.out}/emma-coverage" />
24 <property name="gwt.junit.testcase.web.includes" value="${gwt.junit.testcase.includes}" />
25 <property name="gwt.junit.testcase.web.excludes" value="" />
26
jat@google.combf79ddb2009-10-14 07:44:30 +000027 <property name="gwt.junit.testcase.dev.includes" value="${gwt.junit.testcase.includes}" />
28 <property name="gwt.junit.testcase.dev.excludes" value="" />
29
jat@google.com57b69402009-10-14 18:08:29 +000030 <!--
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +000031 Test args can be specified per test target type.
32 -->
33 <property name="test.args.dev.remote" value="${test.args}" />
34 <property name="test.args.dev.selenium" value="${test.args}" />
35 <property name="test.args.web.remote" value="${test.args}" />
36 <property name="test.args.web.selenium" value="${test.args}" />
37
38 <!--
jat@google.com57b69402009-10-14 18:08:29 +000039 Only IFrameLinker actually supports -noserver mode; run the other linker
40 tests if and when they are supported
41 -->
jlabanca@google.com81244562009-08-05 19:55:36 +000042 <property name="gwt.junit.testcase.noserver.includes" value="**/IFrameLinkerTest.class" />
43 <property name="gwt.junit.testcase.noserver.excludes" value="" />
fabbott@google.com25305472009-06-10 21:39:00 +000044
jat@google.com57b69402009-10-14 18:08:29 +000045 <!--
fabbott@google.com25305472009-06-10 21:39:00 +000046 Whether I18NSuite should test e.g. Foo$InnerMsgs_fr.properties (if the
47 value is "dollar") or Foo_Inner_fr.properties (for "bar")
48 -->
49 <property name="gwt.i18n.test.InnerClassChar" value="dollar"/>
50
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000051 <!--
fabbott@google.com25305472009-06-10 21:39:00 +000052 Classpaths added for test cases
53 -->
54 <path id="test.extraclasspath">
jat@google.comacf97d32009-09-21 22:06:15 +000055 <pathelement location="${gwt.build}/out/dev/bin-test" />
bobv@google.comb39b79c2009-06-18 15:58:28 +000056 <pathelement location="test-super" />
fabbott@google.com25305472009-06-10 21:39:00 +000057 <pathelement location="test_i18n_${gwt.i18n.test.InnerClassChar}" />
jat@google.combf79ddb2009-10-14 07:44:30 +000058 <pathelement location="${gwt.tools.lib}/cglib/cglib-2.2.jar"/>
59 <pathelement location="${gwt.tools.lib}/easymock/easymock.jar"/>
60 <pathelement location="${gwt.tools.lib}/easymock/easymockclassextension.jar"/>
61 <pathelement location="${gwt.tools.lib}/objectweb/asm-3.1.jar"/>
fabbott@google.com25305472009-06-10 21:39:00 +000062 </path>
63
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000064 <!-- Platform shouldn't matter here, just picking one -->
jat@google.com0b1619e2009-09-20 19:33:31 +000065 <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000066
jlabanca@google.comf780b7a2009-10-16 16:36:03 +000067 <target name="compile" description="Compile all class files"
68 unless="compile.complete">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000069 <mkdir dir="${javac.out}" />
70 <gwt.javac>
71 <classpath>
scottb@google.com4f57bc22009-01-16 22:46:42 +000072 <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000073 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
74 <pathelement location="${gwt.tools.lib}/jfreechart/jfreechart-1.0.3.jar" />
75 <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" />
bobv@google.coma933c8b2009-03-26 02:12:25 +000076 <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" />
bobv@google.com93569172010-01-15 19:17:28 +000077 <pathelement location="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000078 <pathelement location="${gwt.dev.jar}" />
79 </classpath>
80 </gwt.javac>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000081
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000082 <!-- Build the BrowserManagerServer_Stub to allow remote browser testing -->
83 <rmic base="${javac.out}"
jat@google.com57b69402009-10-14 18:08:29 +000084 classname="com.google.gwt.junit.remote.BrowserManagerServer"
85 stubversion="1.2"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000086 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000087
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000088 <!--
jat@google.comacf97d32009-09-21 22:06:15 +000089 Compile test code for dev to pick up TypeOracleTestUtils and others.
jat@google.com57b69402009-10-14 18:08:29 +000090 Compiles test dependencies in dev/core
spoon@google.comd0b00f82009-03-27 14:58:53 +000091 -->
jat@google.com57b69402009-10-14 18:08:29 +000092 <target name="compile.dev.tests">
jat@google.comc090a072009-09-21 17:39:53 +000093 <gwt.ant dir="../dev" target="compile.tests" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000094 </target>
spoon@google.comd0b00f82009-03-27 14:58:53 +000095
jat@google.com57b69402009-10-14 18:08:29 +000096 <!--
97 Compiles the test code for this project
98 -->
jat@google.come0fa5b12009-10-13 23:57:19 +000099 <target name="compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000100 depends="compile.dev.tests, compile.emma.if.enabled"
101 unless="compile.tests.complete">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000102 <mkdir dir="${javac.junit.out}" />
jat@google.com57b69402009-10-14 18:08:29 +0000103 <gwt.javac srcdir="test" excludes="com/google/gwt/langtest/**"
104 destdir="${javac.junit.out}">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000105 <classpath>
106 <pathelement location="${javac.out}" />
jat@google.comacf97d32009-09-21 22:06:15 +0000107 <pathelement location="${gwt.build}/out/dev/bin-test" />
scottb@google.com4f57bc22009-01-16 22:46:42 +0000108 <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000109 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
110 <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" />
rjrjr@google.com34ea8a22009-10-06 16:46:04 +0000111 <pathelement location="${gwt.tools.lib}/cglib/cglib-2.2.jar"/>
112 <pathelement location="${gwt.tools.lib}/easymock/easymock.jar"/>
113 <pathelement location="${gwt.tools.lib}/easymock/easymockclassextension.jar"/>
114 <pathelement location="${gwt.tools.lib}/objectweb/asm-3.1.jar"/>
scottb@google.com2e8ef322008-11-04 20:59:58 +0000115 <pathelement location="${gwt.dev.jar}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000116 </classpath>
117 </gwt.javac>
118 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000119
jat@google.combf79ddb2009-10-14 07:44:30 +0000120 <target name="build" depends="compile"
121 description="Build and package this project">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000122 <mkdir dir="${gwt.build.lib}" />
123 <gwt.jar>
124 <fileset dir="src" excludes="**/package.html" />
125 <fileset dir="super" excludes="**/package.html" />
126 <fileset dir="${javac.out}" />
scottb@google.com171f3f52009-08-11 19:50:31 +0000127 <zipfileset src="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" excludes="**/*.java"/>
bobv@google.coma933c8b2009-03-26 02:12:25 +0000128 <zipfileset src="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" />
bobv@google.com93569172010-01-15 19:17:28 +0000129 <zipfileset src="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000130 </gwt.jar>
131 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000132
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000133 <target name="checkstyle" description="Static analysis of source">
134 <gwt.checkstyle>
135 <fileset dir="src" />
136 <fileset dir="super/com/google/gwt/emul" />
137 <fileset dir="super/com/google/gwt/junit/translatable" />
138 </gwt.checkstyle>
scottb@google.com6de97562009-11-03 21:04:24 +0000139 <gwt.checkstyle.tests>
140 <fileset dir="test">
scottb@google.com391ffa02009-11-03 22:04:04 +0000141 <include name="com/google/**/*.java" />
142 <include name="test/**" />
scottb@google.com6de97562009-11-03 21:04:24 +0000143 </fileset>
144 </gwt.checkstyle.tests>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000145 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000146
jat@google.combf79ddb2009-10-14 07:44:30 +0000147 <target name="test.remoteweb" depends="test.web.remote">
148 <echo message="DEPRECATED: test.remoteweb has been renamed test.web.remote"/>
149 </target>
150
151 <target name="test.web.remote"
jat@google.com57b69402009-10-14 18:08:29 +0000152 description="Run web test with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000153 if="gwt.hosts.web.remote"
154 unless="test.web.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000155 <echo message="Performing web remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000156 <property name="test.web.remote.args" value="${test.args.web.remote}" />
jat@google.com3d3977f2009-10-16 04:52:05 +0000157 <fileset id="test.web.remote.tests" dir="${javac.junit.out}"
158 includes="${gwt.junit.testcase.web.includes}"
159 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000160 <gwt.junit test.name="test.web.remote"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000161 test.args="${test.web.remote.args} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module"
jat@google.com3d3977f2009-10-16 04:52:05 +0000162 test.out="${junit.out}/web-remote"
163 test.cases="test.web.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000164 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000165 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000166 </extraclasspaths>
167 </gwt.junit>
168 </target>
zundel@google.com29666c82008-06-04 16:07:53 +0000169
jat@google.combf79ddb2009-10-14 07:44:30 +0000170 <target name="test.dev.remote"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000171 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000172 description="Run dev-mode tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000173 if="gwt.hosts.dev.remote"
174 unless="test.dev.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000175 <echo message="Performing dev-mode remote testing at ${gwt.remote.browsers}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000176 <property name="test.dev.remote.args" value="${test.args.dev.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000177 <fileset id="test.dev.remote.tests" dir="${javac.junit.out}"
178 includes="${gwt.junit.testcase.dev.includes}"
179 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000180 <gwt.junit test.name="test.dev.remote"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000181 test.args="${test.dev.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote} -batch module"
jat@google.com57b69402009-10-14 18:08:29 +0000182 test.out="${junit.out}/dev-remote" test.cases="test.dev.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000183 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000184 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000185 </extraclasspaths>
186 </gwt.junit>
187 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000188
jat@google.combf79ddb2009-10-14 07:44:30 +0000189 <target name="test.emma.remote"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000190 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000191 description="Run emma tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000192 if="gwt.hosts.dev.remote"
193 unless="test.emma.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000194 <echo message="Performing emma remote testing at ${gwt.hosts.dev.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000195 <property name="test.emma.remote.args" value="${test.args.dev.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000196 <fileset id="test.emma.remote.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000197 includes="${gwt.junit.testcase.dev.includes}"
198 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000199 <gwt.junit test.name="test.emma.remote"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000200 test.args="${test.emma.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote} -batch module"
jat@google.com57b69402009-10-14 18:08:29 +0000201 test.out="${junit.out}/emma-remote"
202 test.cases="test.emma.remote.tests" >
jgw@google.coma3509e22009-02-06 21:06:24 +0000203 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000204 <path refid="test.extraclasspath" />
jgw@google.coma3509e22009-02-06 21:06:24 +0000205 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
206 </extraclasspaths>
207 </gwt.junit>
208 </target>
209
jat@google.combf79ddb2009-10-14 07:44:30 +0000210 <target name="test.emma.selenium"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000211 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000212 description="Run emma tests with Selenium-RC servers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000213 if="gwt.hosts.dev.selenium"
214 unless="test.emma.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000215 <echo message="Performing emma selenium testing at ${gwt.hosts.dev.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000216 <property name="test.emma.selenium.args" value="${test.args.dev.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000217 <fileset id="test.emma.selenium.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000218 includes="${gwt.junit.testcase.dev.includes}"
219 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000220 <gwt.junit test.name="test.emma.selenium"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000221 test.args='${test.emma.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}" -batch module'
jat@google.com57b69402009-10-14 18:08:29 +0000222 test.out="${junit.out}/emma-selenium"
223 test.cases="test.emma.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000224 <extraclasspaths>
225 <path refid="test.extraclasspath" />
226 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
227 </extraclasspaths>
228 </gwt.junit>
229 </target>
230
231 <target name="test.draft.remote"
232 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000233 description="Run draft compiled tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000234 if="gwt.hosts.web.remote"
235 unless="test.draft.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000236 <echo message="Performing draft remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000237 <property name="test.draft.remote.args" value="${test.args.web.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000238 <fileset id="test.draft.remote.tests" dir="${javac.junit.out}"
239 includes="${gwt.junit.testcase.web.includes}"
240 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000241 <gwt.junit test.name="test.draft.remote"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000242 test.args="${test.draft.remote.args} -draftCompile -prod -standardsMode -out www -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module"
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000243 test.out="${junit.out}/draft-remote"
244 test.cases="test.draft.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000245 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000246 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000247 </extraclasspaths>
248 </gwt.junit>
spoon@google.comd0b00f82009-03-27 14:58:53 +0000249 </target>
250
jat@google.combf79ddb2009-10-14 07:44:30 +0000251 <target name="test.nometa.remote"
jat@google.com57b69402009-10-14 18:08:29 +0000252 description="Run -XdisableClassMetadata tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000253 if="gwt.hosts.web.remote"
254 unless="test.nometa.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000255 <echo message="Performing nometa remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000256 <property name="test.nometa.remote.args" value="${test.args.web.remote}" />
jat@google.com3d3977f2009-10-16 04:52:05 +0000257 <fileset id="test.nometa.remote.tests" dir="${javac.junit.out}"
jat@google.com57b69402009-10-14 18:08:29 +0000258 includes="${gwt.junit.testcase.web.includes}"
259 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000260 <gwt.junit test.name="test.nometa.remote"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000261 test.args="${test.nometa.remote.args} -XdisableClassMetadata -prod -standardsMode -out www -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module"
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000262 test.out="${junit.out}/nometa-remote"
263 test.cases="test.nometa.remote.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000264 <extraclasspaths>
265 <path refid="test.extraclasspath" />
266 </extraclasspaths>
267 </gwt.junit>
268 </target>
269
270 <target name="test.selenium" depends="test.web.selenium">
271 <echo message="DEPRECATED: test.selenium has been renamed test.web.selenium"/>
272 </target>
273
274 <target name="test.web.selenium"
275 depends="compile, compile.tests"
276 description="Run web tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000277 if="gwt.hosts.web.selenium"
278 unless="test.web.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000279 <echo message="Performing web testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000280 <property name="test.web.selenium.args" value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000281 <fileset id="test.web.selenium.tests" dir="${javac.junit.out}"
282 includes="${gwt.junit.testcase.web.includes}"
283 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000284 <gwt.junit test.name="test.web.selenium"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000285 test.args='${test.web.selenium.args} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}" -batch module'
jat@google.com57b69402009-10-14 18:08:29 +0000286 test.out="${junit.out}/web-selenium"
287 test.cases="test.web.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000288 <extraclasspaths>
289 <path refid="test.extraclasspath" />
290 </extraclasspaths>
291 </gwt.junit>
292 </target>
293
294 <target name="test.dev.selenium"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000295 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000296 description="Run dev-mode tests using Selenium RC servers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000297 if="gwt.hosts.dev.selenium"
298 unless="test.dev.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000299 <echo message="Performing dev-mode testing using Selenium RC at ${gwt.hosts.dev.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000300 <property name="test.dev.selenium.args" value="${test.args.dev.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000301 <fileset id="test.dev.selenium.tests" dir="${javac.junit.out}"
302 includes="${gwt.junit.testcase.dev.includes}"
303 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000304 <gwt.junit test.name="test.dev.selenium"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000305 test.args='${test.dev.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}" -batch module'
jat@google.com57b69402009-10-14 18:08:29 +0000306 test.out="${junit.out}/dev-selenium"
307 test.cases="test.dev.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000308 <extraclasspaths>
309 <path refid="test.extraclasspath" />
310 </extraclasspaths>
311 </gwt.junit>
312 </target>
313
314 <target name="test.nometa.selenium"
315 description="Run nometa tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000316 if="gwt.hosts.web.selenium"
317 unless="test.nometa.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000318 <echo message="Performing nometa testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000319 <property name="test.nometa.selenium.args"
320 value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000321 <fileset id="test.nometa.selenium.tests" dir="${javac.junit.out}"
322 includes="${gwt.junit.testcase.web.includes}"
323 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000324 <gwt.junit test.name="test.nometa.selenium"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000325 test.args='${test.nometa.selenium.args} -XdisableClassMetadata -prod -standardsMode -out www -runStyle "Selenium:${gwt.hosts.web.selenium}" -batch module'
jat@google.com57b69402009-10-14 18:08:29 +0000326 test.out="${junit.out}/nometa-selenium"
327 test.cases="test.nometa.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000328 <extraclasspaths>
329 <path refid="test.extraclasspath" />
330 </extraclasspaths>
331 </gwt.junit>
332 </target>
333
334 <target name="test.draft.selenium"
jat@google.com57b69402009-10-14 18:08:29 +0000335 description="Run draft compiled tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000336 if="gwt.hosts.web.selenium"
337 unless="test.draft.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000338 <echo message="Performing draft testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000339 <property name="test.draft.selenium.args"
340 value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000341 <fileset id="test.draft.selenium.tests" dir="${javac.junit.out}"
342 includes="${gwt.junit.testcase.web.includes}"
343 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000344 <gwt.junit test.name="test.draft.selenium"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000345 test.args='${test.draft.selenium.args} -draftCompile -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}" -batch module'
jat@google.com57b69402009-10-14 18:08:29 +0000346 test.out="${junit.out}/draft-selenium"
347 test.cases="test.draft.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000348 <extraclasspaths>
349 <path refid="test.extraclasspath" />
350 </extraclasspaths>
351 </gwt.junit>
352 </target>
353
354 <target name="test.emma.htmlunit"
355 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000356 description="Run emma tests with HtmlUnit"
357 unless="test.emma.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000358 <fileset id="test.emma.htmlunit.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000359 includes="${gwt.junit.testcase.dev.includes}"
360 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000361 <gwt.junit test.name="test.emma.htmlunit"
362 test.args="${test.args} -standardsMode "
jat@google.com57b69402009-10-14 18:08:29 +0000363 test.out="${junit.out}/emma-htmlunit"
364 test.cases="test.emma.htmlunit.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000365 <extraclasspaths>
366 <path refid="test.extraclasspath" />
367 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
368 </extraclasspaths>
369 </gwt.junit>
370 </target>
371
372 <target name="test.dev.htmlunit"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000373 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000374 description="Run dev-mode tests with HtmlUnit."
375 unless="test.dev.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000376 <fileset id="test.dev.htmlunit.tests" dir="${javac.junit.out}"
377 includes="${gwt.junit.testcase.dev.includes}"
378 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000379 <gwt.junit test.name="test.dev.htmlunit"
380 test.args="${test.args} -standardsMode "
jlabanca@google.com2707b142009-11-04 17:47:36 +0000381 test.out="${junit.out}/dev-htmlunit"
jat@google.com57b69402009-10-14 18:08:29 +0000382 test.cases="test.dev.htmlunit.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000383 <extraclasspaths>
384 <path refid="test.extraclasspath" />
385 </extraclasspaths>
386 </gwt.junit>
387 </target>
388
389 <target name="test.hosted.emma" depends="test.emma">
390 <echo message="DEPRECATED: test.hosted.emma has been renamed test.emma"/>
391 </target>
392
393 <target name="test.hosted" depends="test.dev">
394 <echo message="DEPRECATED: test.hosted has been renamed test.dev"/>
395 </target>
396
jat@google.combf79ddb2009-10-14 07:44:30 +0000397 <target name="test.noserver"
398 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000399 description="Run noserver tests for this project."
400 unless="test.noserver.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000401 <fileset id="test.noserver.tests" dir="${javac.junit.out}"
402 includes="${gwt.junit.testcase.noserver.includes}"
403 excludes="${gwt.junit.testcase.noserver.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000404 <gwt.junit test.name="test.noserver"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000405 test.args="${test.args} -prod -standardsMode -noserver"
jat@google.com57b69402009-10-14 18:08:29 +0000406 test.out="${junit.out}/noserver" test.cases="test.noserver.tests">
spoon@google.comd0b00f82009-03-27 14:58:53 +0000407 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000408 <path refid="test.extraclasspath" />
spoon@google.comd0b00f82009-03-27 14:58:53 +0000409 </extraclasspaths>
410 </gwt.junit>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000411 </target>
gwt.team.scottb5b5e6342007-02-22 21:34:23 +0000412
jat@google.combf79ddb2009-10-14 07:44:30 +0000413 <target name="test.web.htmlunit"
414 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000415 description="Run web-mode tests with HtmlUnit."
416 unless="test.web.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000417 <fileset id="test.web.htmlunit.tests" dir="${javac.junit.out}"
418 includes="${gwt.junit.testcase.web.includes}"
419 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000420 <gwt.junit test.name="test.web.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000421 test.args="${test.args} -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000422 test.out="${junit.out}/web-htmlunit"
423 test.cases="test.web.htmlunit.tests">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000424 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000425 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000426 </extraclasspaths>
427 </gwt.junit>
428 </target>
gwt.team.scottb5b5e6342007-02-22 21:34:23 +0000429
jat@google.combf79ddb2009-10-14 07:44:30 +0000430 <target name="test.nometa.htmlunit"
431 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000432 description="Run -XdisableClassMetadata tests with HtmlUnit."
433 unless="test.nometa.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000434 <fileset id="test.nometa.htmlunit.tests" dir="${javac.junit.out}"
435 includes="${gwt.junit.testcase.web.includes}"
436 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000437 <gwt.junit test.name="test.nometa.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000438 test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000439 test.out="${junit.out}/nometa-htmlunit"
440 test.cases="test.nometa.htmlunit.tests" >
bobv@google.comc0e308f2009-02-19 01:08:17 +0000441 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000442 <path refid="test.extraclasspath" />
bobv@google.comc0e308f2009-02-19 01:08:17 +0000443 </extraclasspaths>
444 </gwt.junit>
445 </target>
446
jat@google.combf79ddb2009-10-14 07:44:30 +0000447 <target name="test.draft.htmlunit"
448 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000449 description="Run draft compiled HtmlUnit tests (no batching on purpose)"
450 unless="test.draft.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000451 <fileset id="test.draft.htmlunit.tests" dir="${javac.junit.out}"
452 includes="${gwt.junit.testcase.web.includes}"
453 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000454 <gwt.junit test.name="test.draft.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000455 test.args="${test.args} -draftCompile -out www -prod -standardsMode"
jat@google.com57b69402009-10-14 18:08:29 +0000456 test.out="${junit.out}/draft-htmlunit"
457 test.cases="test.draft.htmlunit.tests" >
bobv@google.com62773b12009-01-29 22:31:44 +0000458 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000459 <path refid="test.extraclasspath" />
bobv@google.com62773b12009-01-29 22:31:44 +0000460 </extraclasspaths>
461 </gwt.junit>
462 </target>
463
jat@google.combf79ddb2009-10-14 07:44:30 +0000464 <target name="test"
465 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000466 description="Run all tests for this project.">
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000467 <!-- Prevent compilation for every target. -->
468 <property name="compile.complete" value="true"/>
469 <property name="compile.tests.complete" value="true"/>
470
jat@google.com57b69402009-10-14 18:08:29 +0000471 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
472 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
jlabanca@google.comf78c54b2009-07-16 17:19:20 +0000473 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000474 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
475 threadCount="${gwt.threadCount}">
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000476 <!--
477 The remote targets must be run sequentially or BrowserManager will queue
478 requests, which will cause some tests to timeout while waiting.
479 -->
480 <sequential>
481 <antcall target="test.dev.remote"/>
482 <antcall target="test.emma.remote"/>
483 <antcall target="test.web.remote"/>
484 <antcall target="test.draft.remote"/>
485 <antcall target="test.nometa.remote"/>
486 </sequential>
487 <antcall target="test.dev.selenium"/>
488 <antcall target="test.emma.selenium"/>
489 <antcall target="test.web.selenium"/>
490 <antcall target="test.draft.selenium"/>
491 <antcall target="test.nometa.selenium"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000492 <antcall target="test.noserver"/>
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000493 <!-- TODO(jlabanca): Enable htmlunit tests when they are stable. -->
494 <!-- <antcall target="test.dev.htmlunit"/> -->
495 <!-- <antcall target="test.emma.htmlunit"/> -->
496 <!-- <antcall target="test.web.htmlunit"/> -->
497 <!-- <antcall target="test.draft.htmlunit"/> -->
498 <!-- <antcall target="test.nometa.htmlunit"/> -->
499 </parallel>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000500 </limit>
501 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000502
jat@google.com57b69402009-10-14 18:08:29 +0000503 <target name="test.htmlunit"
504 depends="compile, compile.tests"
505 description="Run all HtmlUnit tests">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000506 <!-- Prevent compilation for every target. -->
507 <property name="compile.complete" value="true"/>
508 <property name="compile.tests.complete" value="true"/>
509
jat@google.com57b69402009-10-14 18:08:29 +0000510 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
511 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
512 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000513 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
514 threadCount="${gwt.threadCount}">
jat@google.com57b69402009-10-14 18:08:29 +0000515 <antcall target="test.dev.htmlunit"/>
516 <antcall target="test.emma.htmlunit"/>
517 <antcall target="test.web.htmlunit"/>
518 <antcall target="test.draft.htmlunit"/>
519 <antcall target="test.nometa.htmlunit"/>
520 <antcall target="test.noserver"/>
521 </parallel>
522 </limit>
523 </target>
524
jat@google.combf79ddb2009-10-14 07:44:30 +0000525 <target name="test.dev"
526 depends="compile, compile.tests"
527 description="Run dev-mode tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000528 <!-- Prevent compilation for every target. -->
529 <property name="compile.complete" value="true"/>
530 <property name="compile.tests.complete" value="true"/>
531
jat@google.combf79ddb2009-10-14 07:44:30 +0000532 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000533 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
534 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000535 <!-- disable HtmlUnit until it is reliable
536 <antcall target="test.dev.htmlunit"/>
537 -->
538 <!-- no-op unless gwt.hosts.dev.remote is defined -->
539 <antcall target="test.dev.remote"/>
540 <!-- no-op unless gwt.hosts.dev.selenium is defined -->
541 <antcall target="test.dev.selenium"/>
542 </parallel>
543 </limit>
544 </target>
545
546 <target name="test.web"
547 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000548 description="Run web-mode tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000549 <!-- Prevent compilation for every target. -->
550 <property name="compile.complete" value="true"/>
551 <property name="compile.tests.complete" value="true"/>
552
jat@google.combf79ddb2009-10-14 07:44:30 +0000553 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000554 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
555 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000556 <!-- disable HtmlUnit until it is reliable
557 <antcall target="test.web.htmlunit"/>
558 -->
559 <!-- no-op unless gwt.hosts.web.remote is defined -->
560 <antcall target="test.web.remote"/>
561 <!-- no-op unless gwt.hosts.web.selenium is defined -->
562 <antcall target="test.web.selenium"/>
563 </parallel>
564 </limit>
565 </target>
566
567 <target name="test.emma"
568 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000569 description="Run emma tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000570 <!-- Prevent compilation for every target. -->
571 <property name="compile.complete" value="true"/>
572 <property name="compile.tests.complete" value="true"/>
573
jat@google.combf79ddb2009-10-14 07:44:30 +0000574 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000575 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
576 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000577 <!-- disable HtmlUnit until it is reliable
578 <antcall target="test.emma.htmlunit"/>
579 -->
580 <!-- no-op unless gwt.hosts.dev.remote is defined -->
581 <antcall target="test.emma.remote"/>
582 <!-- no-op unless gwt.hosts.dev.selenium is defined -->
583 <antcall target="test.emma.selenium"/>
584 </parallel>
585 </limit>
586 </target>
587
588 <target name="test.draft"
589 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000590 description="Run draft compiled tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000591 <!-- Prevent compilation for every target. -->
592 <property name="compile.complete" value="true"/>
593 <property name="compile.tests.complete" value="true"/>
594
jat@google.combf79ddb2009-10-14 07:44:30 +0000595 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000596 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
597 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000598 <!-- disable HtmlUnit until it is reliable
599 <antcall target="test.draft.htmlunit"/>
600 -->
601 <!-- no-op unless gwt.hosts.web.remote is defined -->
602 <antcall target="test.draft.remote"/>
603 <!-- no-op unless gwt.hosts.web.selenium is defined -->
604 <antcall target="test.draft.selenium"/>
605 </parallel>
606 </limit>
607 </target>
608
609 <target name="test.nometa"
610 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000611 description="Run -XdisableClassMetadata tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000612 <!-- Prevent compilation for every target. -->
613 <property name="compile.complete" value="true"/>
614 <property name="compile.tests.complete" value="true"/>
615
jat@google.combf79ddb2009-10-14 07:44:30 +0000616 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000617 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
618 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000619 <!-- disable HtmlUnit until it is reliable
620 <antcall target="test.web.htmlunit"/>
621 -->
622 <!-- no-op unless gwt.hosts.web.remote is defined -->
623 <antcall target="test.nometa.remote"/>
624 <!-- no-op unless gwt.hosts.web.selenium is defined -->
625 <antcall target="test.nometa.selenium"/>
626 </parallel>
627 </limit>
628 </target>
629
jat@google.com57b69402009-10-14 18:08:29 +0000630 <!--
631 Merges coverage data for the entire project
632 -->
633 <target name="emma.merge">
jlabanca@google.com81244562009-08-05 19:55:36 +0000634 <delete dir="${emma.merged.out}" />
635 <mkdir dir="${emma.merged.out}" />
636 <emma>
637 <merge outfile="${emma.merged.out}/merged.emma" >
638 <fileset dir="${junit.out}" >
639 <include name="**/*.emma" />
640 <exclude name="${emma.merged.out}/merged.emma" />
641 </fileset>
642 </merge>
643 </emma>
644 <emma>
645 <report sourcepath="${project.classpath.src}">
646 <fileset file="${javac.emma.out}/metadata.emma" />
647 <fileset file="${emma.merged.out}/merged.emma" />
648 <txt outfile="${emma.merged.out}/coverage.txt" />
649 <html outfile="${emma.merged.out}/coverage.html" />
650 <xml outfile="${emma.merged.out}/coverage.xml" />
651 </report>
652 </emma>
653 </target>
654
jat@google.combf79ddb2009-10-14 07:44:30 +0000655 <target name="clean"
656 description="Cleans this project's intermediate and output files">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000657 <delete dir="${project.build}" />
658 <delete file="${project.lib}" />
659 </target>
jat@google.com57b69402009-10-14 18:08:29 +0000660
661 <target name="presubmit" depends="test, checkstyle"
662 description="runs the gwt api checker, user checkstyle, and user tests">
spoon@google.comd0b00f82009-03-27 14:58:53 +0000663 <gwt.ant dir=".." target="apicheck-nobuild"/>
jgw@google.coma3509e22009-02-06 21:06:24 +0000664 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000665</project>