conor 2003/02/01 21:34:21
Modified: src/script ant.bat Log: Fix ant.bat for Win95/98/ME users - check for existence of ant.jar PR: 13582 Revision Changes Path 1.26 +4 -4 jakarta-ant/src/script/ant.bat Index: ant.bat =================================================================== RCS file: /home/cvs/jakarta-ant/src/script/ant.bat,v retrieving revision 1.25 retrieving revision 1.26 diff -u -w -u -r1.25 -r1.26 --- ant.bat 24 Jan 2003 14:45:57 -0000 1.25 +++ ant.bat 2 Feb 2003 05:34:21 -0000 1.26 @@ -25,11 +25,11 @@ goto setupArgs rem This label provides a place for the argument list loop to break out rem and for NT handling to skip to. -:doneStart +:doneStart rem find ANT_HOME if it does not exist due to either an invalid value passed rem by the user or the %0 problem on Windows 9x -if exist "%ANT_HOME%" goto checkJava +if exist "%ANT_HOME%\lib\ant.jar" goto checkJava rem check for ant in Program Files on system drive if not exist "%SystemDrive%\Program Files\ant" goto checkSystemDrive @@ -38,13 +38,13 @@ :checkSystemDrive rem check for ant in root directory of system drive -if not exist %SystemDrive%\ant\nul goto checkCDrive +if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive set ANT_HOME=%SystemDrive%\ant goto checkJava :checkCDrive rem check for ant in C:\ant for Win9X users -if not exist C:\ant\nul goto noAntHome +if not exist C:\ant\lib\ant.jar goto noAntHome set ANT_HOME=C:\ant goto checkJava
