Browse Source

Test for the 4NT shell, which requires a

different method of slurping command line
args than cmd.exe.

Submitted by: Jim Anderson


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269307 13f79535-47bb-0310-9956-ffa450edef68
master
glennm 24 years ago
parent
commit
b1c37b60a6
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/script/ant.bat

+ 7
- 0
src/script/ant.bat View File

@@ -15,10 +15,17 @@ set DEFAULT_ANT_HOME=%DEFAULT_ANT_HOME:\bin\=%
if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME% if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME%
set 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 rem On NT/2K grab all arguments at once
set ANT_CMD_LINE_ARGS=%* set ANT_CMD_LINE_ARGS=%*
goto doneStart goto doneStart


:setup4NT
set ANT_CMD_LINE_ARGS=%$
goto doneStart

:win9xStart :win9xStart
rem Slurp the command line arguments. This loop allows for an unlimited number of rem Slurp the command line arguments. This loop allows for an unlimited number of
rem agruments (up to the command line limit, anyway). rem agruments (up to the command line limit, anyway).


Loading…
Cancel
Save