Skip to content

Commit

Permalink
Fix JDK tools extensions for Windows.
Browse files Browse the repository at this point in the history
Needed for #276.

--
MOS_MIGRATED_REVID=114527619
  • Loading branch information
dslomov committed Feb 12, 2016
1 parent 08663e6 commit 14c49ac
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/main/tools/jdk.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,29 @@ filegroup(

filegroup(
name = "java",
srcs = ["bin/java"],
srcs = select({
":windows" : ["bin/java.exe"],
"//conditions:default" : ["bin/java"],
}),
)

filegroup(
name = "jar",
srcs = ["bin/jar"],
srcs = select({
":windows" : ["bin/jar.exe"],
"//conditions:default" : ["bin/jar"],
}),
)

filegroup(
name = "javac",
srcs = ["bin/javac"],
srcs = select({
":windows" : ["bin/javac.exe"],
"//conditions:default" : ["bin/javac"],
}),
)


filegroup(
name = "xjc",
srcs = ["bin/xjc"],
Expand Down Expand Up @@ -121,3 +131,9 @@ java_import(
jars = ["lib/tools.jar"],
neverlink = 1,
)

config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
visibility = ["//visibility:private"],
)

0 comments on commit 14c49ac

Please sign in to comment.