From a32a70ccdcd79dd9f8820963fd7568d269d21138 Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 29 Aug 2016 18:54:44 +0000 Subject: Add a resource validator action for android_library Part 3 of the 3 new proposed android_library res processing actions. Pulls a zip file from the merging action, unpacks it, and then validates the results with aapt. Get an R.txt and srcjar w/ javadocs from aapt. In order to the get the R.txt, I think you need to ask for the R.java sources anyway. Split the processResources() into a runAapt() function that can be reused. Hookup in bazel coming separately. -- MOS_MIGRATED_REVID=131618410 --- .../build/lib/rules/android/AndroidResourcesProcessorBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesProcessorBuilder.java') 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 789c3dcacf..be7ae3047b 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 @@ -289,7 +289,7 @@ public class AndroidResourcesProcessorBuilder { if (!Strings.isNullOrEmpty(customJavaPackage)) { // Sets an alternative java package for the generated R.java - // this is allows android rules to generate resources outside of the java{,tests} tree. + // this allows android rules to generate resources outside of the java{,tests} tree. builder.add("--packageForR").add(customJavaPackage); } -- cgit v1.2.3