diff options
| author | glennm <glennm@unknown> | 2001-07-10 14:08:39 +0000 |
|---|---|---|
| committer | glennm <glennm@unknown> | 2001-07-10 14:08:39 +0000 |
| commit | b1c37b60a602ed1bce473816613fbe2238eb3d32 (patch) | |
| tree | 915444d2bbf68608b5f9693d614d6db59069d208 /src/script | |
| parent | 2fa84738b4a2bfc1380bfbebe46c2e54921ff061 (diff) | |
| download | ant-b1c37b60a602ed1bce473816613fbe2238eb3d32.tar.gz | |
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
Diffstat (limited to 'src/script')
| -rwxr-xr-x | src/script/ant.bat | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/script/ant.bat b/src/script/ant.bat index 87f6b0469..31815d93f 100755 --- a/src/script/ant.bat +++ b/src/script/ant.bat @@ -15,10 +15,17 @@ set DEFAULT_ANT_HOME=%DEFAULT_ANT_HOME:\bin\=% 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 rem Slurp the command line arguments. This loop allows for an unlimited number of rem agruments (up to the command line limit, anyway). |
