diff options
author | Irina Iancu <elenairina@google.com> | 2017-03-22 10:43:28 +0000 |
---|---|---|
committer | Yue Gan <yueg@google.com> | 2017-03-22 10:55:03 +0000 |
commit | c34320d27b5360e24c36b1bdca1d3081828a64fb (patch) | |
tree | c3a2500d3f48e92dfc7ad940e94208757d934f13 /src/test/shell | |
parent | 5387c730e7d5561219e80cf007d7f19cbc5a9f21 (diff) |
Disable sourcepath test for JDK7.
Fixes #2717.
--
PiperOrigin-RevId: 150862069
MOS_MIGRATED_REVID=150862069
Diffstat (limited to 'src/test/shell')
-rwxr-xr-x | src/test/shell/bazel/bazel_java_test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/shell/bazel/bazel_java_test.sh b/src/test/shell/bazel/bazel_java_test.sh index 554eb551d1..b0a8a0978e 100755 --- a/src/test/shell/bazel/bazel_java_test.sh +++ b/src/test/shell/bazel/bazel_java_test.sh @@ -106,6 +106,11 @@ function test_build_hello_world() { } function test_java_common_compile_sourcepath() { + # TODO(bazel-team): Enable this for Java 7 when VanillaJavaBuilder supports --sourcepath. + JAVA_VERSION="1.$(bazel query --output=build '@bazel_tools//tools/jdk:toolchain' | grep source_version | cut -d '"' -f 2)" + if [ "${JAVA_VERSION}" = "1.7" ]; then + return 0 + fi mkdir -p g cat >g/A.java <<'EOF' package g; |