aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibrary.java
diff options
context:
space:
mode:
authorGravatar twerth <twerth@google.com>2018-08-14 00:00:02 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-08-14 00:01:58 -0700
commite5719662a91a7eb310eb0ea528992c49090784c9 (patch)
tree3a7ec7df05198ce8acca7700d5d4dd5cdd51bb61 /src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibrary.java
parent1f253d2a1a44bd53910e26a891e1ef88301e934d (diff)
Add exports attribute to proto_library.
Note that it is currently only used by the java_proto_library family of rules (if enabled per flag). RELNOTES: None PiperOrigin-RevId: 208601730
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibrary.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibrary.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibrary.java b/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibrary.java
index 000aa5ec53..ac8fcc8a85 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibrary.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibrary.java
@@ -62,7 +62,9 @@ public class BazelProtoLibrary implements RuleConfiguredTargetFactory {
protoPathFlags,
protoSourceRoot,
directProtoSourceRoots,
- !protoSources.isEmpty());
+ !protoSources.isEmpty(),
+ /* protosInExports= */ null,
+ /* exportedProtoSourceRoots= */ null);
Artifact descriptorSetOutput =
ruleContext.getGenfilesArtifact(