Add make variables for runfiles location of $(JAVABASE) to support --no_legacy_external_runfiles. (#272) Add make variables for runfiles locations of `$(JAVA)` and `$(JAVABASE)`. These are needed to access these paths when passing them to test rules via `env` when using `--no_legacy_external_runfiles`. The original make variables still work in exec contexts such as genrules. Closes #272 COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_java/pull/272 from thirtyseven:patch-2 438b659093cb8bc4a1d0b1560a6a22dee463405f PiperOrigin-RevId: 726438570 Change-Id: I74e0815e1e71547c653a7b53bff801c62392f075
Java Rules for Bazel https://bazel.build.
Documentation
For a quickstart tutorial, see https://bazel.build/start/java
For slightly more advanced usage, like setting up toolchains or writing your own java-like rules, see https://bazel.build/docs/bazel-and-java
Core Java rules
Add a load like:
load("@rules_java//java:java_library.bzl", "java_library")
to your BUILD / BUILD.bazel / bzl` files
For detailed docs on the core rules, see https://bazel.build/reference/be/java