Skip to content

Commit

Permalink
Deprecate targets in the JDK workspace for removal
Browse files Browse the repository at this point in the history
See bazelbuild#5594

PiperOrigin-RevId: 214537295
  • Loading branch information
cushon authored and Copybara-Service committed Sep 26, 2018
1 parent 73516f3 commit fc8a927
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/tools/jdk.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,36 @@ DEPRECATION_MESSAGE = ("Don't depend on targets in the JDK workspace;" +
filegroup(
name = "jni_header",
srcs = ["include/jni.h"],
deprecation = DEPRECATION_MESSAGE,
)

filegroup(
name = "jni_md_header-darwin",
srcs = ["include/darwin/jni_md.h"],
deprecation = DEPRECATION_MESSAGE,
)

filegroup(
name = "jni_md_header-linux",
srcs = ["include/linux/jni_md.h"],
deprecation = DEPRECATION_MESSAGE,
)

filegroup(
name = "jni_md_header-freebsd",
srcs = ["include/freebsd/jni_md.h"],
deprecation = DEPRECATION_MESSAGE,
)

filegroup(
name = "jni_md_header-windows",
srcs = ["include/win32/jni_md.h"],
deprecation = DEPRECATION_MESSAGE,
)

filegroup(
name = "java",
deprecation = DEPRECATION_MESSAGE,
srcs = select({
":windows": ["bin/java.exe"],
"//conditions:default": ["bin/java"],
Expand All @@ -40,6 +46,7 @@ filegroup(

filegroup(
name = "jar",
deprecation = DEPRECATION_MESSAGE,
srcs = select({
":windows": ["bin/jar.exe"],
"//conditions:default": ["bin/jar"],
Expand All @@ -48,6 +55,7 @@ filegroup(
)

filegroup(
deprecation = DEPRECATION_MESSAGE,
name = "javac",
srcs = select({
":windows": ["bin/javac.exe"],
Expand All @@ -57,11 +65,13 @@ filegroup(
)

filegroup(
deprecation = DEPRECATION_MESSAGE,
name = "xjc",
srcs = ["bin/xjc"],
)

filegroup(
deprecation = DEPRECATION_MESSAGE,
name = "wsimport",
srcs = ["bin/wsimport"],
)
Expand All @@ -76,18 +86,21 @@ BOOTCLASS_JARS = [

# TODO(cushon): this isn't compatible with JDK 9
filegroup(
deprecation = DEPRECATION_MESSAGE,
name = "bootclasspath",
srcs = ["jre/lib/%s" % jar for jar in BOOTCLASS_JARS],
)

# TODO(cushon): migrate to extclasspath and delete
filegroup(
name = "extdir",
deprecation = DEPRECATION_MESSAGE,
srcs = glob(["jre/lib/ext/*.jar"]),
)

filegroup(
name = "extclasspath",
deprecation = DEPRECATION_MESSAGE,
srcs = glob(["jre/lib/ext/*.jar"]),
)

Expand All @@ -100,6 +113,7 @@ filegroup(
":windows": glob(["jre/bin/**"], exclude = ["jre/bin/plugin2/**"]),
"//conditions:default": glob(["jre/bin/**"]),
}),
deprecation = DEPRECATION_MESSAGE,
)

filegroup(
Expand All @@ -118,6 +132,7 @@ filegroup(
":jre-bin",
":jre-lib",
],
deprecation = DEPRECATION_MESSAGE,
)

filegroup(
Expand Down Expand Up @@ -159,12 +174,14 @@ java_runtime(
filegroup(
name = "langtools",
srcs = ["lib/tools.jar"],
deprecation = DEPRECATION_MESSAGE,
)

java_import(
name = "langtools-neverlink",
jars = ["lib/tools.jar"],
neverlink = 1,
deprecation = DEPRECATION_MESSAGE,
)

config_setting(
Expand Down

0 comments on commit fc8a927

Please sign in to comment.