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.

README 2.1 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. BOOTSTRAP FOLDER README
  2. ---------------------------------------------------------------------
  3. The utilities provided here are used by the developers of Ant to
  4. bootstrap builds of Ant and will be used by the nightly build process
  5. to build Ant from a zero state.
  6. That said, there is no reason for most folks -- even hard core Ant
  7. developers -- to use the files here on a regular basis. You should
  8. really have the latest stable version of Ant installed somewhere so
  9. that you can easily build Ant using itself. Check out the
  10. installation guidelines in the documentation for suggestions on how
  11. Ant can be installed as a full time program of your system.
  12. HOW TO USE
  13. So, you really want to use the bootstrap facilities instead of just
  14. downloading a build from somewhere? Ok. Here's how it works:
  15. * Make sure that sun.tools.javac.Main is on your classpath.
  16. Sometimes it is, sometimes it isn't -- it depends on the JDK
  17. installed on your machine. You can do a quick check using
  18. the 'javap sun.tools.javac.Main' command to see if it is.
  19. * Make sure that you have a JAXP 1.1 compliant parser in your
  20. classpath. The Bootstrap itself doesn't need XML parsing
  21. classes, but Ant itself does. A good test for this is
  22. 'javap javax.xml.parsers.DocumentBuilder'
  23. * Compile Bootstrap.java. You should end up with Bootstrap.class
  24. and maybe a few other classes (depending).
  25. * Execute the Bootstrap class.
  26. How this will work in practice is:
  27. % javac Bootstrap.java
  28. % java Bootstrap
  29. The Bootstrap class will grind out a preliminary build in the directory
  30. 'temp/' which will be placed in this directory, then use that build to
  31. build a real copy of Ant into '../Build' using Ant's own makefile. After
  32. doing this, the Boostrap class will remove the intermediate build in
  33. the 'temp/' directory.
  34. HISTORICAL NOTE
  35. The Bootstrap class is somewhat the same rough hack as the first sketch
  36. of Ant itself -- a proof of concept that a Java based build system
  37. could work out halfway decently. Of course, Ant has expanded much past
  38. the capabilities of this, but this little start serves as a useful
  39. tool to bootstrap builds.