aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/android/MergedAndroidResources.java
diff options
context:
space:
mode:
authorGravatar asteinb <asteinb@google.com>2018-04-13 13:28:45 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-13 13:30:30 -0700
commit8b47bc0c5f489424d39e5ae4f41f8a192a890bad (patch)
treef92c6784cfd7cd9874c77a49c78ec1d9c9010e3d /src/main/java/com/google/devtools/build/lib/rules/android/MergedAndroidResources.java
parentb7c367947d13ac88a526965e4c056fd0e4427d72 (diff)
Allow validation action to run just against resources
This is the last step of decoupling assets and resources for the basic android_library path, but more work still needs to be done in future changes (for additional library features like aar exporting, and for top-level targets like android_binary). RELNOTES: none PiperOrigin-RevId: 192815261
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/android/MergedAndroidResources.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/MergedAndroidResources.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/MergedAndroidResources.java b/src/main/java/com/google/devtools/build/lib/rules/android/MergedAndroidResources.java
index e6cf1791d7..c9b6ca69a4 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/MergedAndroidResources.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/MergedAndroidResources.java
@@ -123,6 +123,20 @@ public class MergedAndroidResources extends ParsedAndroidResources {
return manifest;
}
+ public ResourceDependencies getResourceDependencies() {
+ return resourceDependencies;
+ }
+
+ /**
+ * Validates and packages this rule's resources.
+ *
+ * <p>See {@link ValidatedAndroidResources#validateFrom(RuleContext, MergedAndroidResources)}.
+ * This method is a convenience method for calling that one.
+ */
+ public ValidatedAndroidResources validate(RuleContext ruleContext) throws InterruptedException {
+ return ValidatedAndroidResources.validateFrom(ruleContext, this);
+ }
+
@Override
public boolean equals(Object object) {
if (!super.equals(object)) {