1402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll@echo off 2402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 3402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM Licensed to the Apache Software Foundation (ASF) under one or more 4402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM contributor license agreements. See the NOTICE file distributed with 5402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM this work for additional information regarding copyright ownership. 6402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM The ASF licenses this file to You under the Apache License, Version 2.0 7402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM (the "License"); you may not use this file except in compliance with 8402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM the License. You may obtain a copy of the License at 9402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM 10402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM http://www.apache.org/licenses/LICENSE-2.0 11402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM 12402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM Unless required by applicable law or agreed to in writing, software 13402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM distributed under the License is distributed on an "AS IS" BASIS, 14402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM See the License for the specific language governing permissions and 16402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael MollREM limitations under the License. 17402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 18402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif "%OS%"=="Windows_NT" @setlocal 19402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif "%OS%"=="WINNT" @setlocal 20402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 21402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif ""%1""=="""" goto runCommand 22402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 23402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollrem Change drive and directory to %1 24402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif "%OS%"=="Windows_NT" goto nt_cd 25402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif "%OS%"=="WINNT" goto nt_cd 26402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollcd ""%1"" 27402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollgoto end_cd 28402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll:nt_cd 29402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollcd /d ""%1"" 30402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll:end_cd 31402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollshift 32402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 33402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollrem Slurp the command line arguments. This loop allows for an unlimited number 34402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollrem of arguments (up to the command line limit, anyway). 35402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset ANT_RUN_CMD=%1 36402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif ""%1""=="""" goto runCommand 37402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollshift 38402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll:loop 39402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif ""%1""=="""" goto runCommand 40402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollset ANT_RUN_CMD=%ANT_RUN_CMD% %1 41402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollshift 42402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollgoto loop 43402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 44402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll:runCommand 45402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollrem echo %ANT_RUN_CMD% 46402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll%ANT_RUN_CMD% 47402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 48402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif "%OS%"=="Windows_NT" @endlocal 49402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Mollif "%OS%"=="WINNT" @endlocal 50402794e73aed8611d62eb4b01cd155e2d76fcb87Raphael Moll 51