From aed89f6345587eb9bc4987700c3e51a75b43f616 Mon Sep 17 00:00:00 2001 From: Stephane Bailliez Date: Fri, 30 Aug 2002 08:54:45 +0000 Subject: [PATCH] Add quotes when %JAVA_HOME% contains spaces Submitted by: Patrick Luby git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273262 13f79535-47bb-0310-9956-ffa450edef68 --- src/script/ant.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/ant.bat b/src/script/ant.bat index 552bf637d..342f63d35 100755 --- a/src/script/ant.bat +++ b/src/script/ant.bat @@ -59,8 +59,8 @@ for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" %%i if "%JAVA_HOME%" == "" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome set _JAVACMD=%JAVA_HOME%\bin\java.exe -if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\tools.jar -if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\classes.zip +if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" "%JAVA_HOME%\lib\tools.jar" +if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat" "%JAVA_HOME%\lib\classes.zip" goto checkJikes :noJavaHome