aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules
diff options
context:
space:
mode:
authorGravatar asteinb <asteinb@google.com>2018-05-29 13:30:20 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-29 13:31:35 -0700
commit7036e9dcd5f4dfe0d74b70f5754c2d3ec78c5c3c (patch)
tree5a020f5ec3c12635e71378cc49eea55ceb9acb85 /src/main/java/com/google/devtools/build/lib/rules
parent25f6f7b8d7b9fac825796b0153066a47fd2e20fe (diff)
Rename r_txt from AndroidResourcesInfo to compiletime_r_txt
I didn't catch it at the time this field was initially introduced, but R files from Android libraries, exposed via AndroidResourcesInfo, are compiletime only. They should not be used at runtime or inherited from dependencies. Rename the field and add this warning to the description. RELNOTES: none PiperOrigin-RevId: 198448391
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesInfo.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesInfo.java b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesInfo.java
index 8f22a47360..13502e6857 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesInfo.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/AndroidResourcesInfo.java
@@ -99,7 +99,6 @@ public class AndroidResourcesInfo extends NativeInfo implements AndroidResources
return manifest;
}
- /** Returns the r.txt file for the target. */
@Override
public Artifact getRTxt() {
return rTxt;