You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

antRun.bat 1.3 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @echo off
  2. REM
  3. REM Copyright 2001-2002,2004 The Apache Software Foundation
  4. REM
  5. REM Licensed under the Apache License, Version 2.0 (the "License");
  6. REM you may not use this file except in compliance with the License.
  7. REM You may obtain a copy of the License at
  8. REM
  9. REM http://www.apache.org/licenses/LICENSE-2.0
  10. REM
  11. REM Unless required by applicable law or agreed to in writing, software
  12. REM distributed under the License is distributed on an "AS IS" BASIS,
  13. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. REM See the License for the specific language governing permissions and
  15. REM limitations under the License.
  16. REM
  17. REM
  18. if "%OS%"=="Windows_NT" @setlocal
  19. if "%OS%"=="WINNT" @setlocal
  20. if ""%1""=="""" goto runCommand
  21. rem Change drive and directory to %1
  22. if "%OS%"=="Windows_NT" goto nt_cd
  23. if "%OS%"=="WINNT" goto nt_cd
  24. cd ""%1""
  25. goto end_cd
  26. :nt_cd
  27. cd /d ""%1""
  28. :end_cd
  29. shift
  30. rem Slurp the command line arguments. This loop allows for an unlimited number
  31. rem of arguments (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. :runCommand
  41. rem echo %ANT_RUN_CMD%
  42. %ANT_RUN_CMD%
  43. if "%OS%"=="Windows_NT" @endlocal
  44. if "%OS%"=="WINNT" @endlocal