summaryrefslogtreecommitdiff
path: root/bootstrap.bat
diff options
context:
space:
mode:
authorConor MacNeill <conor@apache.org>2001-07-12 12:12:51 +0000
committerConor MacNeill <conor@apache.org>2001-07-12 12:12:51 +0000
commite49a5fb5644508cc28576955cebb347071848b94 (patch)
treefa753d0327516d8f70a4f82f21babc716fbeeb85 /bootstrap.bat
parenteefa2aba55ad71e6c5ee6e54748b1dc76025c7ac (diff)
downloadant-e49a5fb5644508cc28576955cebb347071848b94.tar.gz
Use /nul when checkign for the existence of directories on Windows
(Although it doesn't work if the directory name is quoted - woohoo) Check for Ant in C:\Ant for Windows 9X users PR: 2101 Based on suggestion by eswierk@cs.stanford.edu (Ed Swierk) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269331 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'bootstrap.bat')
-rwxr-xr-xbootstrap.bat14
1 files changed, 7 insertions, 7 deletions
diff --git a/bootstrap.bat b/bootstrap.bat
index 4c804c7d3..5662896de 100755
--- a/bootstrap.bat
+++ b/bootstrap.bat
@@ -18,10 +18,10 @@ if "" == "%JAVAC%" set JAVAC=%JAVA_HOME%\bin\javac
echo.
echo ... Bootstrapping Ant Distribution
-if "%OS%" == "Windows_NT" if exist bootstrap rmdir/s/q bootstrap
-if not "%OS%" == "Windows_NT" if exist bootstrap deltree/y bootstrap
-if "%OS%" == "Windows_NT" if exist build\classes rmdir/s/q build\classes
-if not "%OS%" == "Windows_NT" if exist build\classes deltree/y build\classes
+if "%OS%" == "Windows_NT" if exist bootstrap\nul rmdir/s/q bootstrap
+if not "%OS%" == "Windows_NT" if exist bootstrap\nul deltree/y bootstrap
+if "%OS%" == "Windows_NT" if exist build\classes\nul rmdir/s/q build\classes
+if not "%OS%" == "Windows_NT" if exist build\classes\nul deltree/y build\classes
SET LOCALCLASSPATH=lib\crimson.jar;lib\jaxp.jar;lib\optional\junit.jar
@@ -41,9 +41,9 @@ echo CLASSPATH=%CLASSPATH%
if "%OS%" == "Windows_NT" if exist %CLASSDIR%\nul rmdir/s/q %CLASSDIR%
if not "%OS%" == "Windows_NT" if exist %CLASSDIR%\nul deltree/y %CLASSDIR%
-if not exist %CLASSDIR% mkdir %CLASSDIR%
-if not exist build mkdir build
-if not exist build\classes mkdir build\classes
+if not exist %CLASSDIR%\nul mkdir %CLASSDIR%
+if not exist build\nul mkdir build
+if not exist build\classes\nul mkdir build\classes
echo.
echo ... Compiling Ant Classes