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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @ECHO OFF
  2. echo BOOTSTRAPPING ANT DISTRIBUTION
  3. set C=%CLASSPATH%;..\jakarta-tools\projectx-tr2.jar
  4. set SRCDIR=src\main\org\apache\tools\ant
  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 Compile the classes into the temp directory
  15. javac -classpath "%C%" -d %TMPDIR% %SRCDIR%\*.java
  16. rem Reset classpath to include base ant class files
  17. set C=%TMPDIR%;%C%
  18. rem Compile sub classes into the temp directory
  19. javac -classpath "%C%" -d %TMPDIR% %SRCDIR%\taskdefs\*.java
  20. echo ** COPYING REQUIRED FILES
  21. rem Copy all the property/manifest files into the temp directory
  22. %COPYCMD% src\main\org\apache\tools\ant\taskdefs\defaults.properties %TMPDIR%\org\apache\tools\ant\taskdefs
  23. %COPYCMD% src\main\org\apache\tools\ant\parser.properties %TMPDIR%\org\apache\tools\ant
  24. echo ** BUILDING ANT DISTRIBUTION
  25. rem Build the distribution using the newly compiled classes in the temp directory
  26. java -classpath "%C%" org.apache.tools.ant.Main jar %1 %2 %3 %4 %5
  27. echo ** CLEANING UP BUILD DIRECTORIES
  28. java -classpath "%C%" org.apache.tools.ant.Main clean %1 %2 %3 %4 %5
  29. rem remove the temp directory
  30. %RMDIRCMD% %TMPDIR%
  31. goto end
  32. rem Set system dependent commands below
  33. :windows
  34. echo ** CONFIGURING COMMANDS FOR WINDOWS 9x SYSTEM
  35. set RMDIRCMD=deltree /Y
  36. set COPYCMD=copy
  37. goto doneOs
  38. :nt
  39. echo ** CONFIGURING COMMANDS FOR NT SYSTEM
  40. set RMDIRCMD=rmdir /s /q
  41. set COPYCMD=copy
  42. goto doneOs
  43. :end
  44. echo ** DONE BOOTSTRAPPING ANT DISTRIBUTION

No Description