From 368ee310b263c4001aafe286e0dc5d067daa58f0 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Thu, 6 May 2004 19:43:19 +0000 Subject: [PATCH] Make sure CLASSPATH is set before attempting to change it; make sure --mixed option is available to cygpath before using it. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276435 13f79535-47bb-0310-9956-ffa450edef68 --- src/script/ant | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/script/ant b/src/script/ant index ed25ebd1d..14fc59107 100644 --- a/src/script/ant +++ b/src/script/ant @@ -224,7 +224,7 @@ fi # For Cygwin, switch paths to appropriate format before running java if $cygwin; then - if [ "$OS" = "Windows_NT" ] ; then + if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then format=mixed else format=windows @@ -233,7 +233,9 @@ if $cygwin; then ANT_LIB=`cygpath --$format "$ANT_LIB"` JAVA_HOME=`cygpath --$format "$JAVA_HOME"` LOCALCLASSPATH=`cygpath --path --$format "$LOCALCLASSPATH"` - CLASSPATH=`cygpath --path --$format "$OCALCLASSPATH"` + if [ -n "$CLASSPATH" ] ; then + CLASSPATH=`cygpath --path --$format "$CLASSPATH"` + fi CYGHOME=`cygpath --$format "$HOME"` fi