aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/java/jdk/langtools
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-04-20 13:58:08 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-04-20 14:23:56 +0000
commit0ad9f5e33c845cd5e26ac34b80d3892cce84f710 (patch)
treeb48739f7e14dda53fa91a1ada79855730f7855f5 /third_party/java/jdk/langtools
parent01e7914245132a07ceb222eb21d1a015b701782d (diff)
Refactor JDK 7 build to use the vendored version of it
Along the path, fix the build for JDK 7 and get rid of most ugliness in the JDK 7 build. Now simply setting JAVA_VERSION to 1.7 will build a JDK 7 compatible version. Fixes #1159. -- Change-Id: I9599283844a57d9e053f12d37445907f22a9232e Reviewed-on: https://bazel-review.googlesource.com/#/c/3452 MOS_MIGRATED_REVID=120332747
Diffstat (limited to 'third_party/java/jdk/langtools')
-rw-r--r--third_party/java/jdk/langtools/BUILD26
1 files changed, 24 insertions, 2 deletions
diff --git a/third_party/java/jdk/langtools/BUILD b/third_party/java/jdk/langtools/BUILD
index a542ae28cb..e87fa27c1d 100644
--- a/third_party/java/jdk/langtools/BUILD
+++ b/third_party/java/jdk/langtools/BUILD
@@ -4,7 +4,16 @@ licenses(["restricted"]) # GNU GPL v2 with Classpath exception
filegroup(
name = "srcs",
- srcs = glob(["**"]),
+ srcs = select({
+ "//tools/jdk:jdk7": [
+ "BUILD",
+ "javac7.jar",
+ ],
+ "//conditions:default": [
+ "BUILD",
+ "javac.jar",
+ ],
+ }),
)
java_import(
@@ -14,5 +23,18 @@ java_import(
filegroup(
name = "javac_jar",
- srcs = ["javac.jar"],
+ srcs = select({
+ "//tools/jdk:jdk7": ["javac7.jar"],
+ "//conditions:default": ["javac.jar"],
+ }),
+)
+
+java_import(
+ name = "javac7",
+ jars = ["javac7.jar"],
+)
+
+filegroup(
+ name = "javac7_jar",
+ srcs = ["javac7.jar"],
)