Skip to content

Commit 0d157a6

Browse files
committed
trying local determination of the system and cygpath accordingly
1 parent b7b4333 commit 0d157a6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

testHeadlessComponents.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,14 @@ pushd $SCRIPT_DIR
110110
$JAVAC_BINARY `find . -type f -name "*.java"`
111111
popd
112112

113-
cp=$(realpath --relative-to="$(pwd)" "$SCRIPT_DIR/testHeadlessComponents/jreTestingSwingComponents/src")
113+
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
114121

115122
declare -A resArray
116123
set +e

0 commit comments

Comments
 (0)