We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7b4333 commit 0d157a6Copy full SHA for 0d157a6
testHeadlessComponents.sh
@@ -110,7 +110,14 @@ pushd $SCRIPT_DIR
110
$JAVAC_BINARY `find . -type f -name "*.java"`
111
popd
112
113
-cp=$(realpath --relative-to="$(pwd)" "$SCRIPT_DIR/testHeadlessComponents/jreTestingSwingComponents/src")
+cp="$SCRIPT_DIR/testHeadlessComponents/jreTestingSwingComponents/src"
114
+
115
+# in case of windows we need to cygpath the path before passing it to the jdk
116
+case "$(uname -s)" in
117
+ MSYS_NT*|MINGW32_NT*|MINGW64_NT*|CYGWIN_NT*)
118
+ cp="$(cygpath -w "$cp")"
119
+ ;;
120
+esac
121
122
declare -A resArray
123
set +e
0 commit comments