Skip to content

Commit 4960e77

Browse files
authored
fix: enable to override JAVABIN of wrapper script (#1432)
fix #1431
1 parent 85f85d1 commit 4960e77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scala/private/phases/phase_write_executable.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _write_executable_non_windows(ctx, executable, rjars, main_class, jvm_flags,
103103
[ctx.expand_location(f, ctx.attr.data) for f in jvm_flags],
104104
)
105105

106-
javabin = "export REAL_EXTERNAL_JAVA_BIN=${JAVABIN};JAVABIN=%s/%s" % (
106+
javabin = "export REAL_EXTERNAL_JAVA_BIN=${JAVABIN};JAVABIN=${JAVABIN:-%s/%s}" % (
107107
runfiles_root(ctx),
108108
wrapper.short_path,
109109
)

0 commit comments

Comments
 (0)