Handle RUNFILES_DIR and/or RUNFILES_MANIFEST_FILE in java_stub_template.txt #20465
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-Java
Issues for Java rules
type: feature request
Description of the feature request:
The current implementation of
java_stub_template.txt
, used injava_binary
, requiresJAVA_RUNFILES
to be present in the environment:bazel/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt
Lines 159 to 187 in 492ee4c
At the very least, it should also support the newer
RUNFILES_DIR
variable.Additionally, the script could also gracefully handle having
RUNFILES_MANIFEST_FILE
in the env overRUNFILES_DIR
orJAVA_RUNFILES
.Which category does this issue belong to?
Java Rules
What underlying problem are you trying to solve with this feature?
No response
Which operating system are you running Bazel on?
Darwin
What is the output of
bazel info release
?release 6.4.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
Issue was highlighed while trying to solve bazel-contrib/rules_jvm#211 through bazel-contrib/rules_jvm#224.
More context on Bazel Slack: https://bazelbuild.slack.com/archives/C01HMGN77Q8/p1701887957242259
The text was updated successfully, but these errors were encountered: