4 REM Copyright 2001-2002,2004-2005 The Apache Software Foundation
6 REM Licensed under the Apache License, Version 2.0 (the "License");
7 REM you may not use this file except in compliance with the License.
8 REM You may obtain a copy of the License at
10 REM http://www.apache.org/licenses/LICENSE-2.0
12 REM Unless required by applicable law or agreed to in writing, software
13 REM distributed under the License is distributed on an "AS IS" BASIS,
14 REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 REM See the License for the specific language governing permissions and
16 REM limitations under the License.
20 if "%OS%"=="Windows_NT" @setlocal
21 if "%OS%"=="WINNT" @setlocal
23 if ""%1""=="""" goto runCommand
25 rem Change drive and directory to %1
26 if "%OS%"=="Windows_NT" cd /d ""%1""
27 if not "%OS%"=="Windows_NT" cd ""%1""
30 rem Slurp the command line arguments. This loop allows for an unlimited number
31 rem of agruments (up to the command line limit, anyway).
33 if ""%1""=="""" goto runCommand
36 if ""%1""=="""" goto runCommand
37 set ANT_RUN_CMD=%ANT_RUN_CMD% %1
42 rem echo %ANT_RUN_CMD%
45 if "%OS%"=="Windows_NT" @endlocal
46 if "%OS%"=="WINNT" @endlocal