Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: build.xml

Issue 762563003: Roll gwt to 2.7.0 (from 2.5.1) (Closed) Base URL: https://code.google.com/p/dom-distiller/@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .gitignore ('k') | create_standalone_js.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8" ?> 1 <?xml version="1.0" encoding="utf-8" ?>
2 <!-- 2 <!--
3 Copyright 2014 The Chromium Authors. All rights reserved. 3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <project name="DomDistiller" default="build" basedir="."> 7 <project name="DomDistiller" default="build" basedir=".">
8 <!-- Arguments to gwtc and devmode targets --> 8 <!-- Arguments to gwtc and devmode targets -->
9 <property name="gwt.args" value="-war war" /> 9 <property name="gwt.args" value="-war war -XjsInteropMode JS" />
10 <property name="gwt.custom.args" value="" /> 10 <property name="gwt.custom.args" value="" />
11 11
12 <!-- Configure path to GWT SDK --> 12 <!-- Configure path to GWT SDK -->
13 <property name="gwt.sdk" location="third_party/gwt-2.5.1" /> 13 <property name="gwt.sdk" location="third_party/gwt-2.7.0" />
14
15 <property name="gwt_exporter.src" location="third_party/gwt_exporter/core/src/ main/java/"/>
16 14
17 <path id="project.class.path"> 15 <path id="project.class.path">
18 <pathelement location="war/WEB-INF/classes"/> 16 <pathelement location="war/WEB-INF/classes"/>
19 <pathelement location="${gwt.sdk}/gwt-user.jar"/> 17 <pathelement location="${gwt.sdk}/gwt-user.jar"/>
20 <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/> 18 <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/>
21 <pathelement location="" /> 19 <pathelement location="" />
22 </path> 20 </path>
23 21
24 <target name="setup"> 22 <target name="setup">
25 <mkdir dir="out"/> 23 <mkdir dir="out"/>
26 </target> 24 </target>
27 25
28 <path id="project.java.path"> 26 <path id="project.java.path">
29 <pathelement location="src"/> 27 <pathelement location="src"/>
30 <pathelement location="${gwt_exporter.src}"/>
31 </path> 28 </path>
32 29
33 <path id="project.java.test.path"> 30 <path id="project.java.test.path">
34 <pathelement location="test" /> 31 <pathelement location="test" />
35 </path> 32 </path>
36 33
37 <path id="protoc.java.output"> 34 <path id="protoc.java.output">
38 <pathelement location="out/proto/java" /> 35 <pathelement location="out/proto/java" />
39 </path> 36 </path>
40 37
41 <path id="protoc.test.java.output"> 38 <path id="protoc.test.java.output">
42 <pathelement location="out/test/proto" /> 39 <pathelement location="out/test/proto" />
43 </path> 40 </path>
44 41
45 <union id="project.non.java.files"> 42 <union id="project.non.java.files">
46 <fileset dir="src" excludes="**/*.java"/> 43 <fileset dir="src" excludes="**/*.java"/>
47 <fileset dir="${gwt_exporter.src}" excludes="**/*.java"/>
48 </union> 44 </union>
49 45
50 <target name="protoc.plugin.base" 46 <target name="protoc.plugin.base"
51 description="Generates proto stuff needed for the gwt_overlay plugin"> 47 description="Generates proto stuff needed for the gwt_overlay plugin">
52 <mkdir dir="out/proto/python" /> 48 <mkdir dir="out/proto/python" />
53 <exec executable="protoc" failonerror="true"> 49 <exec executable="protoc" failonerror="true">
54 <arg value="--python_out=out/proto/python"/> 50 <arg value="--python_out=out/proto/python"/>
55 <arg value="--proto_path=third_party/protobuf"/> 51 <arg value="--proto_path=third_party/protobuf"/>
56 <arg value="third_party/protobuf/google/protobuf/compiler/plugin.proto"/> 52 <arg value="third_party/protobuf/google/protobuf/compiler/plugin.proto"/>
57 </exec> 53 </exec>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 <resources refid="project.non.java.files" /> 89 <resources refid="project.non.java.files" />
94 </copy> 90 </copy>
95 </target> 91 </target>
96 92
97 <target name="gwtc" depends="javac" description="GWT compile to JavaScript (pr oduction mode)"> 93 <target name="gwtc" depends="javac" description="GWT compile to JavaScript (pr oduction mode)">
98 <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler" > 94 <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler" >
99 <classpath> 95 <classpath>
100 <path refid="project.java.path"/> 96 <path refid="project.java.path"/>
101 <path refid="project.class.path"/> 97 <path refid="project.class.path"/>
102 <path refid="protoc.java.output" /> 98 <path refid="protoc.java.output" />
103 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA.jar " /> 99 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
104 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA-sou rces.jar" /> 100 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" / >
105 </classpath> 101 </classpath>
106 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> 102 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
107 <jvmarg value="-Xmx256M"/> 103 <jvmarg value="-Xmx256M"/>
108 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> 104 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
109 <arg line="${gwt.args}"/> 105 <arg line="${gwt.args}"/>
110 <arg line="${gwt.custom.args}"/> 106 <arg line="${gwt.custom.args}"/>
111 <arg value="DomDistiller"/> 107 <arg value="DomDistiller"/>
112 </java> 108 </java>
113 </target> 109 </target>
114 110
115 <target name="extractjs" depends="gwtc" description="Extract standalone javasc ript from compiled javascript"> 111 <target name="extractjs" depends="gwtc" description="Extract standalone javasc ript from compiled javascript">
116 <property name="compiled.js.dir" value="war/domdistiller" /> 112 <property name="compiled.js.dir" value="war/domdistiller" />
117 113
118 <exec executable="python"> 114 <exec executable="python" failonerror="true">
119 <arg value="create_standalone_js.py"/> 115 <arg value="create_standalone_js.py"/>
120 <arg line="-i ${compiled.js.dir}"/> 116 <arg line="-i ${compiled.js.dir}/domdistiller.nocache.js"/>
121 <arg line="-o out/domdistiller.js"/> 117 <arg line="-o out/domdistiller.js"/>
122 </exec> 118 </exec>
123 </target> 119 </target>
124 120
125 <target name="devmode" depends="javac" description="Run development mode"> 121 <target name="devmode" depends="javac" description="Run development mode">
126 <java failonerror="true" fork="true" classname="com.google.gwt.dev.DevMode"> 122 <java failonerror="true" fork="true" classname="com.google.gwt.dev.DevMode">
127 <classpath> 123 <classpath>
128 <path refid="project.java.path"/> 124 <path refid="project.java.path"/>
129 <path refid="project.class.path"/> 125 <path refid="project.class.path"/>
130 </classpath> 126 </classpath>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 <classpath refid="project.class.path"/> 176 <classpath refid="project.class.path"/>
181 </javac> 177 </javac>
182 </target> 178 </target>
183 179
184 <target name="gwtc.tests" depends="javac.tests" description="GWT compile to Ja vaScript (production mode)"> 180 <target name="gwtc.tests" depends="javac.tests" description="GWT compile to Ja vaScript (production mode)">
185 <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler" > 181 <java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler" >
186 <classpath> 182 <classpath>
187 <path refid="project.class.path"/> 183 <path refid="project.class.path"/>
188 <path refid="project.java.test.path"/> 184 <path refid="project.java.test.path"/>
189 <path refid="protoc.test.java.output" /> 185 <path refid="protoc.test.java.output" />
190 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA.jar " /> 186 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
191 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA-sou rces.jar" /> 187 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" / >
192 </classpath> 188 </classpath>
193 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError --> 189 <!-- add jvmarg -Xss16M or similar if you see a StackOverflowError -->
194 <jvmarg value="-Xmx256M"/> 190 <jvmarg value="-Xmx256M"/>
195 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG --> 191 <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
196 <arg line="${gwt.args}"/> 192 <arg line="${gwt.args}"/>
197 <arg line="${gwt.custom.args}"/> 193 <arg line="${gwt.custom.args}"/>
198 <arg value="com.dom_distiller.DomDistiller"/> 194 <arg value="com.dom_distiller.DomDistiller"/>
199 </java> 195 </java>
200 </target> 196 </target>
201 197
202 <target name="test.dev" depends="javac.tests" description="Run development mod e tests"> 198 <target name="test.dev" depends="javac.tests" description="Run development mod e tests">
203 <mkdir dir="out/reports/htmlunit.dev" /> 199 <mkdir dir="out/reports/htmlunit.dev" />
204 <junit 200 <junit
205 fork="yes" 201 fork="yes"
206 printsummary="yes" 202 printsummary="yes"
207 haltonfailure="no" 203 haltonfailure="no"
208 failureproperty="test.dev.failed" 204 failureproperty="test.dev.failed"
209 showoutput="yes" 205 showoutput="yes"
210 logfailedtests="yes" 206 logfailedtests="yes"
211 > 207 >
212 <jvmarg line="-Xmx256m" /> 208 <jvmarg line="-Xmx256m" />
213 <sysproperty key="gwt.args" value="-standardsMode -logLevel WARN" /> 209 <sysproperty key="gwt.args" value="-logLevel WARN" />
214 <sysproperty key="java.awt.headless" value="true" /> 210 <sysproperty key="java.awt.headless" value="true" />
215 <classpath> 211 <classpath>
216 <path refid="project.class.path" /> 212 <path refid="project.class.path" />
217 <path refid="project.java.path" /> 213 <path refid="project.java.path" />
218 <path refid="project.java.test.path" /> 214 <path refid="project.java.test.path" />
219 <path refid="protoc.test.java.output" /> 215 <path refid="protoc.test.java.output" />
220 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA.jar " /> 216 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
221 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA-sou rces.jar" /> 217 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" / >
222 <pathelement location="third_party/junit/junit-4.11.jar" /> 218 <pathelement location="third_party/junit/junit-4.11.jar" />
223 </classpath> 219 </classpath>
224 <batchtest todir="out/reports/htmlunit.dev" > 220 <batchtest todir="out/reports/htmlunit.dev" >
225 <fileset dir="test" > 221 <fileset dir="test" >
226 <include name="**/DomDistillerTestSuite.java" /> 222 <include name="**/DomDistillerTestSuite.java" />
227 </fileset> 223 </fileset>
228 </batchtest> 224 </batchtest>
229 <formatter type="brief" usefile="false" /> 225 <formatter type="brief" usefile="false" />
230 <formatter type="plain" /> 226 <formatter type="plain" />
231 <formatter type="xml" /> 227 <formatter type="xml" />
232 </junit> 228 </junit>
233 <fail message="Test failure detected (test.dev)." if="test.dev.failed" /> 229 <fail message="Test failure detected (test.dev)." if="test.dev.failed" />
234 </target> 230 </target>
235 231
236 <target name="singletest.dev" depends="javac.tests" description="Run developme nt mode tests"> 232 <target name="singletest.dev" depends="javac.tests" description="Run developme nt mode tests">
237 <fail message="You must specify a value for test.filter with -Dtest.filter=" > 233 <fail message="You must specify a value for test.filter with -Dtest.filter=" >
238 <condition> 234 <condition>
239 <not> 235 <not>
240 <isset property="test.filter"/> 236 <isset property="test.filter"/>
241 </not> 237 </not>
242 </condition> 238 </condition>
243 </fail> 239 </fail>
244 <mkdir dir="out/reports/htmlunit.dev" /> 240 <mkdir dir="out/reports/htmlunit.dev" />
245 <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="tes t.dev.failed"> 241 <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="tes t.dev.failed">
246 <jvmarg line="-Xmx256m" /> 242 <jvmarg line="-Xmx256m" />
247 <sysproperty key="gwt.args" value="-standardsMode -logLevel WARN" /> 243 <sysproperty key="gwt.args" value="-logLevel WARN" />
248 <sysproperty key="java.awt.headless" value="true" /> 244 <sysproperty key="java.awt.headless" value="true" />
249 <classpath> 245 <classpath>
250 <path refid="project.class.path" /> 246 <path refid="project.class.path" />
251 <path refid="project.java.path" /> 247 <path refid="project.java.path" />
252 <path refid="project.java.test.path" /> 248 <path refid="project.java.test.path" />
253 <path refid="protoc.test.java.output" /> 249 <path refid="protoc.test.java.output" />
254 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA.jar " /> 250 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
255 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA-sou rces.jar" /> 251 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" / >
256 <pathelement location="third_party/junit/junit-4.11.jar" /> 252 <pathelement location="third_party/junit/junit-4.11.jar" />
257 </classpath> 253 </classpath>
258 <batchtest todir="out/reports/htmlunit.dev" > 254 <batchtest todir="out/reports/htmlunit.dev" >
259 <fileset dir="test" > 255 <fileset dir="test" >
260 <include name="**/${test.filter}Test.java" /> 256 <include name="**/${test.filter}Test.java" />
261 </fileset> 257 </fileset>
262 </batchtest> 258 </batchtest>
263 <formatter type="brief" usefile="false" /> 259 <formatter type="brief" usefile="false" />
264 <formatter type="plain" /> 260 <formatter type="plain" />
265 <formatter type="xml" /> 261 <formatter type="xml" />
266 </junit> 262 </junit>
267 <fail message="Test failure detected (test.dev)." if="test.dev.failed" /> 263 <fail message="Test failure detected (test.dev)." if="test.dev.failed" />
268 </target> 264 </target>
269 265
270 <target name="test.prod" depends="javac.tests" description="Run production mod e tests"> 266 <target name="test.prod" depends="javac.tests" description="Run production mod e tests">
271 <mkdir dir="out/reports/htmlunit.prod" /> 267 <mkdir dir="out/reports/htmlunit.prod" />
272 <junit 268 <junit
273 fork="yes" 269 fork="yes"
274 printsummary="yes" 270 printsummary="yes"
275 haltonfailure="no" 271 haltonfailure="no"
276 failureproperty="test.dev.failed" 272 failureproperty="test.dev.failed"
277 showoutput="yes" 273 showoutput="yes"
278 logfailedtests="yes" 274 logfailedtests="yes"
279 > 275 >
280 <jvmarg line="-Xmx256m" /> 276 <jvmarg line="-Xmx256m" />
281 <sysproperty key="gwt.args" value="-prod -standardsMode -logLevel WARN -ou t out/www-test" /> 277 <sysproperty key="gwt.args" value="-prod -logLevel WARN" />
282 <sysproperty key="java.awt.headless" value="true" /> 278 <sysproperty key="java.awt.headless" value="true" />
283 <classpath> 279 <classpath>
284 <path refid="project.class.path" /> 280 <path refid="project.class.path" />
285 <path refid="project.java.path" /> 281 <path refid="project.java.path" />
286 <path refid="project.java.test.path" /> 282 <path refid="project.java.test.path" />
287 <path refid="protoc.test.java.output" /> 283 <path refid="protoc.test.java.output" />
288 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA.jar " /> 284 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
289 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA-sou rces.jar" /> 285 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" / >
290 <pathelement location="third_party/junit/junit-4.11.jar" /> 286 <pathelement location="third_party/junit/junit-4.11.jar" />
291 </classpath> 287 </classpath>
292 <batchtest todir="out/reports/htmlunit.prod" > 288 <batchtest todir="out/reports/htmlunit.prod" >
293 <fileset dir="test" > 289 <fileset dir="test" >
294 <include name="**/DomDistillerTestSuite.java" /> 290 <include name="**/DomDistillerTestSuite.java" />
295 </fileset> 291 </fileset>
296 </batchtest> 292 </batchtest>
297 <formatter type="brief" usefile="false" /> 293 <formatter type="brief" usefile="false" />
298 <formatter type="plain" /> 294 <formatter type="plain" />
299 <formatter type="xml" /> 295 <formatter type="xml" />
300 </junit> 296 </junit>
301 <fail message="Test failure detected (test.prod)." if="test.prod.failed" /> 297 <fail message="Test failure detected (test.prod)." if="test.prod.failed" />
302 </target> 298 </target>
303 299
304 <target name="singletest.prod" depends="javac.tests" description="Run producti on mode tests"> 300 <target name="singletest.prod" depends="javac.tests" description="Run producti on mode tests">
305 <fail message="You must specify a value for test.filter with -Dtest.filter=" > 301 <fail message="You must specify a value for test.filter with -Dtest.filter=" >
306 <condition> 302 <condition>
307 <not> 303 <not>
308 <isset property="test.filter"/> 304 <isset property="test.filter"/>
309 </not> 305 </not>
310 </condition> 306 </condition>
311 </fail> 307 </fail>
312 <mkdir dir="out/reports/htmlunit.prod" /> 308 <mkdir dir="out/reports/htmlunit.prod" />
313 <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="tes t.prod.failed"> 309 <junit fork="yes" printsummary="yes" haltonfailure="no" failureproperty="tes t.prod.failed">
314 <jvmarg line="-Xmx256m" /> 310 <jvmarg line="-Xmx256m" />
315 <sysproperty key="gwt.args" value="-prod -standardsMode -logLevel WARN -ou t out/www-test" /> 311 <sysproperty key="gwt.args" value="-prod -logLevel WARN" />
316 <sysproperty key="java.awt.headless" value="true" /> 312 <sysproperty key="java.awt.headless" value="true" />
317 <classpath> 313 <classpath>
318 <path refid="project.class.path" /> 314 <path refid="project.class.path" />
319 <path refid="project.java.path" /> 315 <path refid="project.java.path" />
320 <path refid="project.java.test.path" /> 316 <path refid="project.java.test.path" />
321 <path refid="protoc.test.java.output" /> 317 <path refid="protoc.test.java.output" />
322 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA.jar " /> 318 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
323 <pathelement location="third_party/gwt-2.5.1/validation-api-1.0.0.GA-sou rces.jar" /> 319 <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" / >
324 <pathelement location="third_party/junit/junit-4.11.jar" /> 320 <pathelement location="third_party/junit/junit-4.11.jar" />
325 </classpath> 321 </classpath>
326 <batchtest todir="out/reports/htmlunit.prod" > 322 <batchtest todir="out/reports/htmlunit.prod" >
327 <fileset dir="test" > 323 <fileset dir="test" >
328 <include name="**/${test.filter}Test.java" /> 324 <include name="**/${test.filter}Test.java" />
329 </fileset> 325 </fileset>
330 </batchtest> 326 </batchtest>
331 <formatter type="brief" usefile="false" /> 327 <formatter type="brief" usefile="false" />
332 <formatter type="plain" /> 328 <formatter type="plain" />
333 <formatter type="xml" /> 329 <formatter type="xml" />
(...skipping 24 matching lines...) Expand all
358 <delete dir="war/domdistiller" failonerror="false" /> 354 <delete dir="war/domdistiller" failonerror="false" />
359 <delete file="war/DomDistiller.war" failonerror="false" /> 355 <delete file="war/DomDistiller.war" failonerror="false" />
360 <delete dir="gwt-unitCache" failonerror="false" /> 356 <delete dir="gwt-unitCache" failonerror="false" />
361 <delete dir="out" failonerror="false" /> 357 <delete dir="out" failonerror="false" />
362 <delete failonerror="false" includeemptydirs="true"> 358 <delete failonerror="false" includeemptydirs="true">
363 <fileset dir="war" includes="*JUnit/**"/> 359 <fileset dir="war" includes="*JUnit/**"/>
364 </delete> 360 </delete>
365 </target> 361 </target>
366 362
367 </project> 363 </project>
OLDNEW
« no previous file with comments | « .gitignore ('k') | create_standalone_js.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698