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

Side by Side Diff: build/android/ant/sdk-targets.xml

Issue 10905138: Add test jar generation logic for ant builds. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 3 months 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
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- 2 <!--
3 Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 Copyright (c) 2012 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="chrome_sdk_overrides" > 7 <project name="chrome_sdk_overrides" >
8 <!-- 8 <!--
9 Redefinition of targets used by SDK tools. 9 Redefinition of targets used by SDK tools.
10 Supported version: SDK tools revision 20. 10 Supported version: SDK tools revision 20.
11 11
12 SDK tools do not allow easy way of extending classpaths 12 SDK tools do not allow easy way of extending classpaths
13 for aidl and javac. This file defines targets which can be used to 13 for aidl and javac. This file defines targets which can be used to
14 override targets used by tools. 14 override targets used by tools.
15 --> 15 -->
16
17 <!-- 16 <!--
18 Override the -compile target. 17 Override the -compile target.
19 This target requires 'javac.custom.classpath' to be set to reference 18 This target requires 'javac.custom.classpath' to be set to reference
20 of classpath to be used for javac. Also accepts custom path for 19 of classpath to be used for javac. Also accepts custom path for
21 sources: 'javac.custom.sourcepath'. 20 sources: 'javac.custom.sourcepath'.
22 --> 21 -->
23 <target 22 <target
24 name="-compile" 23 name="-compile"
25 depends="-build-setup, -pre-build, -code-gen, -pre-compile"> 24 depends="-build-setup, -pre-build, -code-gen, -pre-compile">
26 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..." > 25 <do-only-if-manifest-hasCode elseText="hasCode = false. Skipping..." >
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 metadatafile="${emma.coverage.absolute.file}" 84 metadatafile="${emma.coverage.absolute.file}"
86 mode="overwrite" 85 mode="overwrite"
87 outdir="${out.absolute.dir}/classes" 86 outdir="${out.absolute.dir}/classes"
88 verbosity="${verbosity}"> 87 verbosity="${verbosity}">
89 <filter excludes="${emma.default.filter}"/> 88 <filter excludes="${emma.default.filter}"/>
90 <filter value="${emma.filter}"/> 89 <filter value="${emma.filter}"/>
91 </instr> 90 </instr>
92 </emma> 91 </emma>
93 </then> 92 </then>
94 </if> 93 </if>
94 <!-- if the project needs a test jar then generate a jar containing
Yaron 2012/09/07 19:19:31 Nit: Start comment on next line and capitalize.
95 all compiled classes and referenced jars.
96 -->
97 <if condition="${generate.test.jar}">
98 <then>
99 <echo level="info">Creating test jar file...</echo>
Yaron 2012/09/07 19:19:31 Include the property in the description so we can
100 <property-location name="create.test.jar.file"
101 location="${CHROMIUM_SRC}/build/android/ant/create-test-jar.js" />
Yaron 2012/09/07 19:19:31 indent 4. Please also remove trailing spaces befor
102 <script language="javascript" src="${create.test.jar.file}" />
103 </then>
104 </if>
105
95 </do-only-if-manifest-hasCode> 106 </do-only-if-manifest-hasCode>
96 </target> 107 </target>
97 </project> 108 </project>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698