From b1c37b60a602ed1bce473816613fbe2238eb3d32 Mon Sep 17 00:00:00 2001 From: glennm Date: Tue, 10 Jul 2001 14:08:39 +0000 Subject: [PATCH] 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 --- src/script/ant.bat | 7 +++++++ 1 file changed, 7 insertions(+) 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).