Skip to content

Commit

Permalink
Propagate additional possible java launchers for fast run.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 310922058
  • Loading branch information
Googler authored and copybara-github committed May 11, 2020
1 parent e19da71 commit 016fb70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aspect/fast_build_info.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def _fast_build_info_impl(target, ctx):
launcher = None
if hasattr(ctx.rule.attr, "_java_launcher") and ctx.rule.attr._java_launcher:
launcher = str(ctx.rule.attr._java_launcher.label)
elif hasattr(ctx.rule.attr, "_javabase") and ctx.rule.attr._javabase:
launcher = str(ctx.rule.attr._javabase.label)
java_info = {
"sources": sources_from_target(ctx),
"test_class": getattr(ctx.rule.attr, "test_class", None),
Expand Down

0 comments on commit 016fb70

Please sign in to comment.