Skip to content

Commit

Permalink
Disable sourcepath test for JDK7.
Browse files Browse the repository at this point in the history
Fixes #2717.

--
PiperOrigin-RevId: 150862069
MOS_MIGRATED_REVID=150862069
  • Loading branch information
iirina authored and hermione521 committed Mar 22, 2017
1 parent 5387c73 commit c34320d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/shell/bazel/bazel_java_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c34320d

Please sign in to comment.