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.1 kB

123456789101112131415161718192021222324252627282930313233
  1. @echo off
  2. REM Copyright (c) 2000-2002 The Apache Software Foundation. All rights
  3. REM reserved.
  4. set OLDCLASSPATH=%CLASSPATH%
  5. set REAL_ANT_HOME=%ANT_HOME%
  6. set ANT_HOME=bootstrap
  7. 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
  8. call bootstrap.bat
  9. 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
  10. echo Bootstrap FAILED
  11. goto cleanup
  12. :runAnt
  13. set LOCALCLASSPATH=lib\xercesImpl.jar;lib\xml-apis.jar;bootstrap\lib\ant.jar
  14. for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat %%i
  15. set CLASSPATH=lib\optional\xalanj1compat.jar;%LOCALCLASSPATH%;%CLASSPATH%
  16. set LOCALCLASSPATH=
  17. if not "%REAL_ANT_HOME%" == "" goto install_ant
  18. call bootstrap\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9
  19. goto cleanup
  20. :install_ant
  21. call bootstrap\bin\ant.bat -emacs -Dant.install="%REAL_ANT_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9
  22. rem clean up
  23. :cleanup
  24. set ANT_HOME=%REAL_ANT_HOME%
  25. set REAL_ANT_HOME=
  26. set CLASSPATH=%OLDCLASSPATH%
  27. set OLDCLASSPATH=