glennm 01/07/10 07:08:46
Modified: src/script ant.bat Log: Test for the 4NT shell, which requires a different method of slurping command line args than cmd.exe. Submitted by: Jim Anderson Revision Changes Path 1.9 +7 -0 jakarta-ant/src/script/ant.bat Index: ant.bat =================================================================== RCS file: /home/cvs/jakarta-ant/src/script/ant.bat,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- ant.bat 2001/07/08 04:56:53 1.8 +++ ant.bat 2001/07/10 14:08:39 1.9 @@ -15,8 +15,15 @@ if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME% set DEFAULT_ANT_HOME= +rem Need to check if we are using the 4NT shell... +if "%eval[2+2]" == "4" goto setup4NT + rem On NT/2K grab all arguments at once set ANT_CMD_LINE_ARGS=%* +goto doneStart + +:setup4NT +set ANT_CMD_LINE_ARGS=%$ goto doneStart :win9xStart
