Skip to content

Commit

Permalink
Enable tests on Windows and fix singlejar_cc_bin as well
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy committed Jul 23, 2019
1 parent 95a0840 commit c405fb8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/test/shell/bazel/bazel_java_tools_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,6 @@ EOF
}

function test_java_tools_singlejar_builds() {
if "$is_windows"; then
echo "Skipping test on Windows." && return
fi
local java_tools_rlocation=$(rlocation io_bazel/src/java_tools_${JAVA_TOOLS_JAVA_VERSION}.zip)
local java_tools_zip_file_url="file://${java_tools_rlocation}"
if "$is_windows"; then
Expand All @@ -209,9 +206,6 @@ EOF
}

function test_java_tools_ijar_builds() {
if "$is_windows"; then
echo "Skipping test on Windows." && return
fi
local java_tools_rlocation=$(rlocation io_bazel/src/java_tools_${JAVA_TOOLS_JAVA_VERSION}.zip)
local java_tools_zip_file_url="file://${java_tools_rlocation}"
if "$is_windows"; then
Expand Down
4 changes: 4 additions & 0 deletions third_party/ijar/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ cc_library(
"//src:__subpackages__",
"//third_party/ijar:__subpackages__",
"//tools/test:__pkg__",
# TODO(bazel-team): Move this target out of @bazel_tools
"@local_java_tools//:__pkg__",
"@remote_java_tools_linux//:__pkg__",
"@remote_java_tools_darwin//:__pkg__",
"@remote_java_tools_windows//:__pkg__",
],
deps = [
":platform_utils",
Expand Down
4 changes: 2 additions & 2 deletions tools/jdk/BUILD.java_tools
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ cc_library(
strip_include_prefix = "java_tools",
visibility = ["//visibility:private"],
deps = [
":cpp_util",
":diag",
":singlejar_port",
"@bazel_tools//src/main/cpp/util",
],
)

Expand Down Expand Up @@ -672,13 +672,13 @@ cc_library(
strip_include_prefix = "java_tools",
deps = [
":combiners",
":cpp_util",
":diag",
":input_jar",
":mapped_file",
":options",
":singlejar_port",
"//java_tools/zlib",
"@bazel_tools//src/main/cpp/util",
],
)

Expand Down

0 comments on commit c405fb8

Please sign in to comment.