aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-05-09 19:20:23 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-05-10 07:57:05 +0000
commitb64150de45415f3871e1de0a2c182636567b9225 (patch)
treee5add17ada45b0a4da7480da14868b78622f4846 /src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java
parent92a3a811330d296c4801c43627c72b76900c8181 (diff)
Avoid generating an ap_ file for android_library
Saves roughly 200ms per aapt invocation, when aapt is only used for validation of resources. -- MOS_MIGRATED_REVID=121863470
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java
index 7967f92934..69754adeb1 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java
@@ -389,9 +389,9 @@ public class AndroidResourcesProcessorBuilder {
primary.getRenameManifestPackage(),
primary.getConstantsInlined(),
// If there is no apk to be generated, use the apk from the primary resources.
- // All ResourceContainers have to have an apk, but if a new one is not requested to be built
- // for this resource processing action (in case of just creating an R.txt or
- // proguard merging), reuse the primary resource from the dependencies.
+ // All android_binary ResourceContainers have to have an apk, but if a new one is not
+ // requested to be built for this resource processing action (in case of just creating an
+ // R.txt or proguard merging), reuse the primary resource from the dependencies.
apkOut != null ? apkOut : primary.getApk(),
manifestOut != null ? manifestOut : primary.getManifest(),
sourceJarOut,