Use `%{output}` placeholder in `JavaSingleJar` and `JavaDeployJar` progress messages.
PiperOrigin-RevId: 1008461488
Change-Id: I0057e8f1eeb30ee4601175c0569a0238d9cffa9e
diff --git a/java/common/rules/impl/java_binary_deploy_jar.bzl b/java/common/rules/impl/java_binary_deploy_jar.bzl
index 41cc9bf..3d2a6be 100644
--- a/java/common/rules/impl/java_binary_deploy_jar.bzl
+++ b/java/common/rules/impl/java_binary_deploy_jar.bzl
@@ -235,7 +235,7 @@
ctx.actions.run(
mnemonic = "JavaDeployJar",
- progress_message = "Building deploy jar %s" % output.short_path,
+ progress_message = "Building deploy jar %{output}",
executable = single_jar,
inputs = inputs,
tools = [single_jar],
diff --git a/java/common/rules/java_single_jar.bzl b/java/common/rules/java_single_jar.bzl
index e36c1b7..f90a4c0 100644
--- a/java/common/rules/java_single_jar.bzl
+++ b/java/common/rules/java_single_jar.bzl
@@ -91,7 +91,7 @@
inputs = depset(build_info_files, transitive = [inputs]),
outputs = [ctx.outputs.output],
arguments = [args],
- progress_message = "Merging into %s" % ctx.outputs.output.short_path,
+ progress_message = "Merging into %{output}",
mnemonic = "JavaSingleJar",
executable = ctx.executable._singlejar,
execution_requirements = {