diff options
Diffstat (limited to 'ant-test-nsc.sh')
-rwxr-xr-x | ant-test-nsc.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ant-test-nsc.sh b/ant-test-nsc.sh index 66750f1724..3b131d3da1 100755 --- a/ant-test-nsc.sh +++ b/ant-test-nsc.sh @@ -10,11 +10,23 @@ # ant build CLASSPATH=$nsc_fjbg_jar:$nsc_scala_jar:$nsc_tools_jar:$nsc_nsc_jar:$nsc_nsc4ant_jar +PLATFORM=unix + +# For Cygwin, switch paths to appropriate format before running ant +if $cygwin; then + if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then + format=mixed + else + format=windows + fi + CLASSPATH=`cygpath --path --$format "$CLASSPATH"` + PLATFORM=win +fi # for debugging your classpath #echo CLASSPATH=$CLASSPATH -CLASSPATH="$CLASSPATH" $ANT_CMD -Dplatform=unix -f "$ANT_BUILDFILE" $* +CLASSPATH="$CLASSPATH" $ANT_CMD -Dplatform=$PLATFORM -f "$ANT_BUILDFILE" $* $RM "$ANT_BUILDFILE" ############################################################################## |