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

Unified 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: fix indent in base.gyp. 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 side-by-side diff with in-line comments
Download patch
Index: build/android/ant/sdk-targets.xml
diff --git a/build/android/ant/sdk-targets.xml b/build/android/ant/sdk-targets.xml
index 8f980b418d43b9f540a2772c18cd244618b4f380..f441d400573b36c62ad7ea90790a9c29e20efc18 100644
--- a/build/android/ant/sdk-targets.xml
+++ b/build/android/ant/sdk-targets.xml
@@ -13,7 +13,6 @@
for aidl and javac. This file defines targets which can be used to
override targets used by tools.
-->
-
<!--
Override the -compile target.
This target requires 'javac.custom.classpath' to be set to reference
@@ -92,6 +91,17 @@
</emma>
</then>
</if>
+ <!-- if the project needs a test jar then generate a jar containing
+ all compiled classes and referenced jars.
+ -->
+ <if condition="${generate.test.jar}">
+ <then>
cjhopman 2012/09/06 22:33:41 Nit: then block is indented too far.
shashi 2012/09/07 00:41:33 Done.
+ <echo level="info">Creating test jar file...</echo>
+ <script language="javascript"
+ src="${PRODUCT_DIR}/../../build/android/ant/create-test-jar.js" />
cjhopman 2012/09/06 22:33:41 This should not be referred to relative to PRODUCT
shashi 2012/09/07 00:41:33 Done.
+ </then>
+ </if>
+
</do-only-if-manifest-hasCode>
</target>
</project>

Powered by Google App Engine
This is Rietveld 408576698