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.

build.bat 1.4 kB

12345678910111213141516171819202122232425262728293031323334353637
  1. @echo off
  2. REM Copyright 2000-2004 The Apache Software Foundation
  3. REM
  4. REM Licensed under the Apache License, Version 2.0 (the "License");
  5. REM you may not use this file except in compliance with the License.
  6. REM You may obtain a copy of the License at
  7. REM
  8. REM http://www.apache.org/licenses/LICENSE-2.0
  9. REM
  10. REM Unless required by applicable law or agreed to in writing, software
  11. REM distributed under the License is distributed on an "AS IS" BASIS,
  12. REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. REM See the License for the specific language governing permissions and
  14. REM limitations under the License.
  15. set REAL_ANT_HOME=%ANT_HOME%
  16. set ANT_HOME=%~dp0\bootstrap
  17. if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
  18. call bootstrap.bat
  19. if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
  20. echo Bootstrap FAILED
  21. goto cleanup
  22. :runAnt
  23. if not "%REAL_ANT_HOME%" == "" goto install_ant
  24. call bootstrap\bin\ant.bat -lib lib/optional %1 %2 %3 %4 %5 %6 %7 %8 %9
  25. goto cleanup
  26. :install_ant
  27. call bootstrap\bin\ant.bat -nouserlib -lib lib/optional -Dant.install="%REAL_ANT_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9
  28. rem clean up
  29. :cleanup
  30. set ANT_HOME=%REAL_ANT_HOME%
  31. set REAL_ANT_HOME=