commit | 1a09e7e0dc2c57182c8864982b1130fb03f33e27 | [log] [tgz] |
---|---|---|
author | László Csomor <laszlocsomor@google.com> | Wed Mar 22 15:40:57 2017 +0000 |
committer | Yue Gan <yueg@google.com> | Thu Mar 23 09:47:43 2017 +0000 |
tree | d98bdb62f23ecf355bff5a97496fb4b4f8af1542 | |
parent | 2587a6dd010266c749b6234115b9333830a951a7 [diff] |
Cygwin support: fix junitrunner BUILD file See https://github.com/bazelbuild/bazel/issues/2725 Related to https://github.com/bazelbuild/bazel/issues/2447 -- Change-Id: I723764ee1b41caf62a7d71abcdcdfb704521f206 Reviewed-on: https://cr.bazel.build/9511 PiperOrigin-RevId: 150882100 MOS_MIGRATED_REVID=150882100
diff --git a/src/java_tools/junitrunner/java/com/google/testing/coverage/BUILD b/src/java_tools/junitrunner/java/com/google/testing/coverage/BUILD index c43814b..d4d7508 100644 --- a/src/java_tools/junitrunner/java/com/google/testing/coverage/BUILD +++ b/src/java_tools/junitrunner/java/com/google/testing/coverage/BUILD
@@ -102,7 +102,7 @@ # runfiles trees. The Java launcher script looks in the runfiles tree # for the jars (and rightfully so), thus, invoking the binary directly # won't work. - "if [[ $$(uname -a) =~ MSYS ]] || [[ $$(uname -a) =~ freebsd ]]; then", + "if [[ $$(uname -a) =~ MSYS ]] || [[ $$(uname -a) =~ CYGWIN ]] || [[ $$(uname -a) =~ freebsd ]]; then", " cp \"$(location :JacocoCoverage_deploy.jar)\" \"$@\";", "else", " \"$(JAVA)\" -jar \"$(location //third_party/java/jarjar:jarjar_bin_deploy.jar)\" process \"$(location :JacocoCoverage.jarjar)\" \"$(location :JacocoCoverage_deploy.jar)\" \"$@\"",