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.

bootstrap.bat 1.7 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @ECHO OFF
  2. echo BOOTSTRAPPING ANT DISTRIBUTION
  3. set C=%CLASSPATH%;lib/xml.jar
  4. set SRCDIR=src\main\org\apache\tools
  5. set TMPDIR=tmp
  6. if "%OS%" == "Windows_NT" goto nt
  7. goto windows
  8. :doneOs
  9. rem Delete temp directory if it exists
  10. if exist %TMPDIR%\nul %RMDIRCMD% %TMPDIR% nul
  11. rem make the temp directory
  12. mkdir %TMPDIR%
  13. echo ** COMPILING ANT CLASSES
  14. rem Reset classpath to include base ant class files
  15. set C=%TMPDIR%;%C%
  16. rem Compile sub classes into the temp directory
  17. javac -classpath "%C%" -d %TMPDIR% %SRCDIR%\tar\*.java
  18. rem Compile the classes into the temp directory
  19. javac -classpath "%C%" -d %TMPDIR% %SRCDIR%\ant\*.java
  20. rem Compile sub classes into the temp directory
  21. javac -classpath "%C%" -d %TMPDIR% %SRCDIR%\ant\taskdefs\*.java
  22. echo ** COPYING REQUIRED FILES
  23. rem Copy all the property/manifest files into the temp directory
  24. %COPYCMD% src\main\org\apache\tools\ant\taskdefs\defaults.properties %TMPDIR%\org\apache\tools\ant\taskdefs
  25. %COPYCMD% src\main\org\apache\tools\ant\parser.properties %TMPDIR%\org\apache\tools\ant
  26. echo ** BUILDING ANT DISTRIBUTION
  27. rem Build the distribution using the newly compiled classes in the temp directory
  28. java -classpath "%C%" org.apache.tools.ant.Main main %1 %2 %3 %4 %5
  29. echo ** CLEANING UP BUILD DIRECTORIES
  30. java -classpath "%C%" org.apache.tools.ant.Main clean %1 %2 %3 %4 %5
  31. rem remove the temp directory
  32. %RMDIRCMD% %TMPDIR%
  33. goto end
  34. rem Set system dependent commands below
  35. :windows
  36. echo ** CONFIGURING COMMANDS FOR WINDOWS 9x SYSTEM
  37. set RMDIRCMD=deltree /Y
  38. set COPYCMD=copy
  39. goto doneOs
  40. :nt
  41. echo ** CONFIGURING COMMANDS FOR NT SYSTEM
  42. set RMDIRCMD=rmdir /s /q
  43. set COPYCMD=copy
  44. goto doneOs
  45. :end
  46. echo ** DONE BOOTSTRAPPING ANT DISTRIBUTION