aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java
diff options
context:
space:
mode:
authorGravatar cushon <cushon@google.com>2018-07-06 11:18:09 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-07-06 11:19:22 -0700
commit3ac44db0427b7db46b6c39f7dbfab7b5f31f8c37 (patch)
tree559f255282a77607a96677545d1cff594d88a85d /src/test/java
parent13e4d7fbc4203da7adb7760c6d5ad85a44c06cfb (diff)
Read proto javacopts directly in java_lite_proto_library
instead of indirecting through the toolchain's compatible_javacopts. PiperOrigin-RevId: 203502116
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/rules/java/proto/SkylarkJavaLiteProtoLibraryTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/java/proto/SkylarkJavaLiteProtoLibraryTest.java b/src/test/java/com/google/devtools/build/lib/rules/java/proto/SkylarkJavaLiteProtoLibraryTest.java
index 7d8f1fa1fd..bbb35bf536 100644
--- a/src/test/java/com/google/devtools/build/lib/rules/java/proto/SkylarkJavaLiteProtoLibraryTest.java
+++ b/src/test/java/com/google/devtools/build/lib/rules/java/proto/SkylarkJavaLiteProtoLibraryTest.java
@@ -93,6 +93,9 @@ public class SkylarkJavaLiteProtoLibraryTest extends BuildViewTestCase {
scratch.file(RULE_DIRECTORY + "/" + file.getName(), Files.readAllBytes(file.toPath()));
}
scratch.file(RULE_DIRECTORY + "/BUILD", "exports_files(['java_lite_proto_library.bzl'])");
+ scratch.file(
+ "tools/jdk/build_defs.bzl",
+ Files.readAllBytes(Runfiles.location("tools/jdk/build_defs.bzl").toPath()));
invalidatePackages();
}