diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt index 18f75e2eed..25dbc1b39f 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/java/java_stub_template.txt @@ -142,6 +142,12 @@ if [[ "$SINGLEJAR" != 1 || "%needs_runfiles%" == 1 ]]; then fi fi +# This script is running with msys on Windows, so CLASSPATH has to be unix format. If JAVA_RUNFILES +# is like C:/blah/blah, we need convert it to /c/blah/blah, otherwise CLASSPATH doesn't work. +if [ ${JAVA_RUNFILES:1:1} == : ]; then + JAVA_RUNFILES=$(cygpath --unix "$JAVA_RUNFILES") +fi + # Set JAVABIN to the path to the JVM launcher. %javabin% |