Line 32 reads: if exist "%ANT_HOME%" goto checkJava However, win98 sucks and doesn't think that any directory exists -- only files. So I modified it to work around the problem as such: if exist "%ANT_HOME%\README" goto checkJava pretty ugly huh?
Can you tell me if it works if you use "%ANT_HOME%\nul" ? (yes this is 'nul' not 'null').
*** Bug 13369 has been marked as a duplicate of this bug. ***
Yes, "%ANT_HOME%\nul" does work. Had I read the rest of the file I might have tried that.
I'm glad that it works for you under Win9x because it does not work at all under Winxp. 1) works ok but not 2) :-( 1) if exist c:\directory\nul echo Booh 2) set BLAH=c:\directory if exist %BLAH%\nul echo Booh I hate batch files
ant.bat from 1.5 worked for me
This works under Win2000 too : set BLAH=c:\directory if exist %BLAH%\nul echo Booh Could someone retry it under XP to make sure that it does not work there ?
Case 2 ( set BLAH=c:\directory if exist %BLAH%\nul echo Booh ) works fine for me under win xp. This may also be a possible solution: set BLAH=c:\directory if exist %BLAH%\. echo Booh This works under xp. I assume it will also work in 2k/9x as "." is a file that always exists in a directory.
if exist "%ANT_HOME%\." goto checkJava ... does not work in my win98. The following works as long as you don't rename the script. if exist "%ANT_HOME%\bin\ant.bat" goto checkJava
Fixed. I have changed the existence check to check for %ANT_HOME%\lib\ant.jar - should always be there
*** Bug 15996 has been marked as a duplicate of this bug. ***
*** Bug 14495 has been marked as a duplicate of this bug. ***
*** Bug 16867 has been marked as a duplicate of this bug. ***