Skip to content

Commit

Permalink
Flip Automatic Exec Groups inside java_binary
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 519713707
Change-Id: I395695a205a8be5eba0ad70730764d5d29e19d96
  • Loading branch information
kotlaja authored and copybara-github committed Mar 27, 2023
1 parent f7627e0 commit 602794e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def make_java_binary(executable, resolve_launcher_flag, has_launcher = False):
name = "launcher",
) if resolve_launcher_flag else (_compute_launcher_attr if has_launcher else None),
),
"_use_auto_exec_groups": attr.bool(default = True),
},
({} if executable else {
"args": attr.string_list(),
Expand Down
2 changes: 2 additions & 0 deletions src/main/starlark/builtins_bzl/common/java/java_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ def _create_shared_archive(ctx, java_attrs):
mnemonic = "JavaJSA",
progress_message = "Dumping Java Shared Archive %s" % jsa.short_path,
executable = runtime.java_executable_exec_path,
toolchain = semantics.JAVA_RUNTIME_TOOLCHAIN_TYPE,
inputs = depset(input_files, transitive = [runtime.files]),
outputs = [jsa],
arguments = [args],
Expand Down Expand Up @@ -411,6 +412,7 @@ def _create_one_version_check(ctx, inputs):
mnemonic = "JavaOneVersion",
progress_message = "Checking for one-version violations in %{label}",
executable = tool,
toolchain = semantics.JAVA_TOOLCHAIN_TYPE,
inputs = depset([allowlist], transitive = [inputs]),
tools = [tool],
outputs = [output],
Expand Down
1 change: 1 addition & 0 deletions src/main/starlark/builtins_bzl/common/java/java_util.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def create_single_jar(ctx, output, *input_depsets):
mnemonic = "JavaSingleJar",
progress_message = "Building singlejar jar %s" % output.short_path,
executable = toolchain.single_jar,
toolchain = semantics.JAVA_TOOLCHAIN_TYPE,
inputs = all_inputs,
tools = [toolchain.single_jar],
outputs = [output],
Expand Down

0 comments on commit 602794e

Please sign in to comment.