[14982] | 1 | @echo off
|
---|
| 2 |
|
---|
| 3 | REM
|
---|
| 4 | REM Copyright 2001-2002,2004-2005 The Apache Software Foundation
|
---|
| 5 | REM
|
---|
| 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
|
---|
| 9 | REM
|
---|
| 10 | REM http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 11 | REM
|
---|
| 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.
|
---|
| 17 | REM
|
---|
| 18 | REM
|
---|
| 19 |
|
---|
| 20 | if "%OS%"=="Windows_NT" @setlocal
|
---|
| 21 | if "%OS%"=="WINNT" @setlocal
|
---|
| 22 |
|
---|
| 23 | if ""%1""=="""" goto runCommand
|
---|
| 24 |
|
---|
| 25 | rem Change drive and directory to %1
|
---|
| 26 | if "%OS%"=="Windows_NT" cd /d ""%1""
|
---|
| 27 | if not "%OS%"=="Windows_NT" cd ""%1""
|
---|
| 28 | shift
|
---|
| 29 |
|
---|
| 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).
|
---|
| 32 | set ANT_RUN_CMD=%1
|
---|
| 33 | if ""%1""=="""" goto runCommand
|
---|
| 34 | shift
|
---|
| 35 | :loop
|
---|
| 36 | if ""%1""=="""" goto runCommand
|
---|
| 37 | set ANT_RUN_CMD=%ANT_RUN_CMD% %1
|
---|
| 38 | shift
|
---|
| 39 | goto loop
|
---|
| 40 |
|
---|
| 41 | :runCommand
|
---|
| 42 | rem echo %ANT_RUN_CMD%
|
---|
| 43 | %ANT_RUN_CMD%
|
---|
| 44 |
|
---|
| 45 | if "%OS%"=="Windows_NT" @endlocal
|
---|
| 46 | if "%OS%"=="WINNT" @endlocal
|
---|
| 47 |
|
---|