ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r683961 - /ant/core/trunk/src/script/ant
Date Fri, 08 Aug 2008 13:20:58 GMT
Author: bodewig
Date: Fri Aug  8 06:20:58 2008
New Revision: 683961

URL: http://svn.apache.org/viewvc?rev=683961&view=rev
Log:
make sure JAVA_HOME and ANT_HOME are set before passing them to cygpath.  PR 45245.

Modified:
    ant/core/trunk/src/script/ant

Modified: ant/core/trunk/src/script/ant
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/script/ant?rev=683961&r1=683960&r2=683961&view=diff
==============================================================================
--- ant/core/trunk/src/script/ant (original)
+++ ant/core/trunk/src/script/ant Fri Aug  8 06:20:58 2008
@@ -251,9 +251,9 @@
   else
     format=windows
   fi
-  ANT_HOME=`cygpath --$format "$ANT_HOME"`
+  [ -n "$ANT_HOME" ] && ANT_HOME=`cygpath --$format "$ANT_HOME"`
   ANT_LIB=`cygpath --$format "$ANT_LIB"`
-  JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
+  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
   LCP_TEMP=`cygpath --path --unix "$LOCALCLASSPATH"`
   LOCALCLASSPATH=`cygpath --path --$format "$LCP_TEMP"`
   if [ -n "$CLASSPATH" ] ; then



Mime
View raw message