diff options
author | tomlu <tomlu@google.com> | 2018-02-14 16:25:36 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-14 16:27:31 -0800 |
commit | f4c5314803d2f2fdd1c6a37324f7f2ebd2d908ca (patch) | |
tree | fe87ed3e4d0e04ff32c1b6c185ac29db6b72949e /src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java | |
parent | b97150dab5b3284eb8c1a573289077c03fc0bb2e (diff) |
Pass --target_label, --injecting_rule_kind to all java compile actions.
JavaBuilder and friends will write this into the manifest of the produced jars to assist with add_dep commands, when strict_deps is violated.
This will obviate the need for blaze to pass jar owners on the command line.
PiperOrigin-RevId: 185763422
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java b/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java index d486b0e756..82accda1b0 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaLiteProtoAspect.java @@ -190,7 +190,8 @@ public class JavaLiteProtoAspect extends NativeAspectClass implements Configured Artifact outputJar = aspectCommon.getOutputJarArtifact(); generatedCompilationArgsProvider = - aspectCommon.createJavaCompileAction(sourceJar, outputJar, dependencyCompilationArgs); + aspectCommon.createJavaCompileAction( + "java_lite_proto_library", sourceJar, outputJar, dependencyCompilationArgs); NestedSet<Artifact> javaSourceJars = NestedSetBuilder.<Artifact>stableOrder().add(sourceJar).build(); |