Blame | Last modification | View Log | RSS feed
@echo offREM Licensed to the Apache Software Foundation (ASF) under one or moreREM contributor license agreements. See the NOTICE file distributed withREM this work for additional information regarding copyright ownership.REM The ASF licenses this file to You under the Apache License, Version 2.0REM (the "License"); you may not use this file except in compliance withREM the License. You may obtain a copy of the License atREMREM http://www.apache.org/licenses/LICENSE-2.0REMREM Unless required by applicable law or agreed to in writing, softwareREM distributed under the License is distributed on an "AS IS" BASIS,REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.REM See the License for the specific language governing permissions andREM limitations under the License.if "%OS%"=="Windows_NT" @setlocalif "%OS%"=="WINNT" @setlocalif ""%1""=="""" goto runCommandrem Change drive and directory to %1if "%OS%"=="Windows_NT" goto nt_cdif "%OS%"=="WINNT" goto nt_cdcd ""%1""goto end_cd:nt_cdcd /d ""%1"":end_cdshiftrem Slurp the command line arguments. This loop allows for an unlimited numberrem of arguments (up to the command line limit, anyway).set ANT_RUN_CMD=%1if ""%1""=="""" goto runCommandshift:loopif ""%1""=="""" goto runCommandset ANT_RUN_CMD=%ANT_RUN_CMD% %1shiftgoto loop:runCommandrem echo %ANT_RUN_CMD%%ANT_RUN_CMD%if "%OS%"=="Windows_NT" @endlocalif "%OS%"=="WINNT" @endlocal