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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 xml-crimson checked out next to
  20. the jakarta-ant workspace so that the Bootstrap can find
  21. this necessary code.
  22. * Compile Bootstrap.java. You should end up with Bootstrap.class
  23. and maybe a few other classes (depending).
  24. * Execute the Bootstrap class.
  25. How this will work in practice is:
  26. % javac Bootstrap.java
  27. % java Bootstrap
  28. The Bootstrap class will grind out a preliminary build in the directory
  29. 'temp/' which will be placed in this directory, then use that build to
  30. build a real copy of Ant into '../Build' using Ant's own makefile. After
  31. doing this, the Boostrap class will remove the intermediate build in
  32. the 'temp/' directory.
  33. HISTORICAL NOTE
  34. The Bootstrap class is somewhat the same rough hack as the first sketch
  35. of Ant itself -- a proof of concept that a Java based build system
  36. could work out halfway decently. Of course, Ant has expanded much past
  37. the capabilities of this, but this little start serves as a useful
  38. tool to bootstrap builds.