temporary fix for cygwin - need CommandLine to somehow call the cygwin m2

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163251 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2004-12-15 11:27:43 +00:00
parent 44550379b4
commit af10f52f64
1 changed files with 12 additions and 0 deletions

View File

@ -18,5 +18,17 @@ if [ ! -z "$M2_HOME" ]; then
jvm_args="$jvm_args -Dmaven.home=$M2_HOME"
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
case "`uname`" in
CYGWIN*) cygwin=true ;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath -w "$JAVA_HOME"`
export JAVA_HOME
fi
java $jvm_args -cp "$cp" $verifier