Skip to content

Commit

Permalink
Change jdk_system rule to use header jars for bootclasspath.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 705214973
  • Loading branch information
gkdn authored and copybara-github committed Dec 11, 2024
1 parent 14291c0 commit d62539b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jre/java/jdk_system.bzl
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"""Helpers to create a JDK system module."""

load("@rules_java//java:defs.bzl", "java_common")
load("@rules_java//java:defs.bzl", "JavaInfo", "java_common")

def _jdk_system(ctx):
# TODO(goktug): Use header jar for open-source when Bazel with new Turbine is available.
bootclasspath = ctx.file.bootclasspath

system = ctx.actions.declare_directory("%s" % ctx.label.name)
java_runtime = ctx.attr._runtime[java_common.JavaRuntimeInfo]
zip_tool = ctx.executable._zip
Expand Down Expand Up @@ -51,6 +53,7 @@ jdk_system = rule(
"bootclasspath": attr.label(
cfg = "target",
allow_single_file = True,
providers = [JavaInfo],
),
"_runtime": attr.label(
default = Label("@bazel_tools//tools/jdk:current_host_java_runtime"),
Expand Down

0 comments on commit d62539b

Please sign in to comment.