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

123456789101112131415161718192021222324252627282930
  1. @echo off
  2. set OLDCLASSPATH=%CLASSPATH%
  3. set REAL_ANT_HOME=%ANT_HOME%
  4. set ANT_HOME=bootstrap
  5. 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
  6. call bootstrap.bat
  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. echo Bootstrap FAILED
  9. goto cleanup
  10. :runAnt
  11. set LOCALCLASSPATH=lib\crimson.jar;lib\jaxp.jar;bootstrap\lib\ant.jar
  12. for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat %%i
  13. set CLASSPATH=lib\optional\xalanj1compat.jar;%LOCALCLASSPATH%;%CLASSPATH%
  14. set LOCALCLASSPATH=
  15. if not "%REAL_ANT_HOME%" == "" goto install_ant
  16. call bootstrap\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9
  17. goto cleanup
  18. :install_ant
  19. call bootstrap\bin\ant.bat -emacs -Dant.install="%REAL_ANT_HOME%" %1 %2 %3 %4 %5 %6 %7 %8 %9
  20. rem clean up
  21. :cleanup
  22. set ANT_HOME=%REAL_ANT_HOME%
  23. set REAL_ANT_HOME=
  24. set CLASSPATH=%OLDCLASSPATH%
  25. set OLDCLASSPATH=