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.

ReleaseInstructions 8.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. Instructions for making a Release:
  2. Authors: Conor MacNeill
  3. Stefan Bodewig
  4. Magesh Umasankar
  5. Note: This document was updated in the context of releasing Ant 1.6.
  6. Please interpret the branch names, tags, etc. according to
  7. your context.
  8. 1. Propose a release plan for vote. This should set out the timetable for
  9. the release under ideal circumstances. The level of bugs reported
  10. can delay things. Generally, give a few weeks to "close" the source tree
  11. to further changes so people can finalise contributions, etc. At this time,
  12. the first beta will be cut and there will be then a period of beta testing,
  13. usually 1 month but this should be flexible.
  14. 2. Note that any mention of a deadline causes a flood of bug fixes, new tasks,
  15. etc. This needs to be managed as best it can. Some fixes will be applied,
  16. others held over. Make this clear in the release plan. The committers and
  17. particularly the release manager will need to make judgement calls here.
  18. Anything too "big" is likely to be held over.
  19. 3. Once the freeze date arrives, create a branch for the release builds. You
  20. will need to be comfortable in handling CVS branches with mutliple
  21. merge-backs to the main branch and even selected merges from the the main
  22. branch to the release branch.
  23. For more information on performing branching and merging, please visit
  24. http://www.durak.org/cvswebsites/doc/cvs_54.php#SEC54
  25. Label such branches ANT_16_BRANCH.
  26. 4. Once the branch is setup, the version numbers in CVS are changed. On the
  27. branch, the version property in build.xml becomes 1.6Beta,
  28. while the main branch is updated to 1.7alpha.
  29. [[ TODO: Check if the documentation files also need to be updated to point
  30. to the right areas of Ant's website. ]]
  31. 5. Before a build :
  32. the first beta on the 1.6 branch should be called 1.6Beta1, ...
  33. the version property in build.xml governs the output of ant -version and
  34. the naming of the distribution files.
  35. Update the following files for version number:
  36. On the branch only :
  37. * docs/manual/cover.html
  38. * docs/manual/credits.html
  39. * build.xml (version property & manifest-version property)
  40. Commit your changes.
  41. On the branch and on the main trunk (*):
  42. * xdocs/antnews.xml (Announcement)
  43. * xdocs/faq.xml (Ant's history details - not for betas)
  44. * xdocs/index.xml (Announcement, latest release details, link to
  45. manual under "Documentation")
  46. * xdocs/srcdownload.xml
  47. * xdocs/bindownload.xml
  48. Generate the html files by invoking ant on docs.xml - you need
  49. jakarta-site2 checked out for this. Commit the modified/generated
  50. files
  51. 6. Ensure you have all the external libraries that Ant uses in your
  52. lib/optional directory. To find out what libraries you need, execute
  53. the build with -verbose option and scan for lines beginning with
  54. "Unable to load...".
  55. 7. Next bootstrap, build and run the tests. Then build the distribution
  56. on the branch. It is important that this be a clean build. Label this with
  57. a tag ANT_16_B1.
  58. 8. Sign the distribution files using the following simple script
  59. #!/bin/sh
  60. for i in distribution/*
  61. do
  62. echo "Signing " $i
  63. gpg -a -b --force-v3-sigs $i
  64. done
  65. The --force-v3-sigs will improve the interoperability with PGP 5.x,
  66. see <http://www.gnupg.org/(en)/documentation/faqs.html#q5.5>.
  67. Before you do that, ensure that the key you use is inside the KEYS
  68. file in Ant's CVS repository - and that you perform a cvs update on
  69. the KEYS file in /www/www.apache.org/dist/ant/
  70. Also make sure you have sent the key that you use to a public
  71. keyserver.
  72. 9. The beta distribution is now ready to go. Bundle it up into a tar.gz file
  73. and scp to your apache account.
  74. 10. Meanwhile, convert the part of the WHATSNEW file covering the changes
  75. since the last release into HTML for the README file on the
  76. website. See the previous release directories for examples of these files.
  77. Add instructions and warnings (GNU tar format issues, etc).
  78. You may choose to use the text2html convertor present at
  79. http://www.aigeek.com/txt2html/
  80. Name the generated file RELEASE-NOTES-x.y.z.html.
  81. [[ TODO: This must perhaps be an Ant task. ]]
  82. 11. Once this is uploaded, unpack things, create the release directory,
  83. something like v1.6Beta1, push the release and RELEASE-NOTES files
  84. into this directory. Create a symbolic link named README.html
  85. that points to the RELEASE-NOTES.
  86. The files should go to /www/cvs.apache.org/dist/ant/ on minotaur.
  87. 12. Address the available release tags in BugZilla. Create a new tag 1.6Beta1
  88. and a 1.7Alpha. Assign all existing 1.6 alpha bugs to one of these release
  89. labels. Note that such massive changes can be done at once by choosing the
  90. link "Change several bugs at once" at the bottom of the bug list
  91. displaying the 1.6alpha bugs.
  92. 13. Once that is done, do a test download to make sure everything is OK. A
  93. common problem may be:
  94. * the file's mime type is not recognized and is interpreted as
  95. text/plain. Fix it by using some .htaccess magic (AddEncoding stuff)
  96. * Your gz.asc files are not being displayed properly (RemoveEncoing stuff)
  97. If it looks OK, announce it on dev@ant and user@ant. After a few
  98. days pass and there are no major problems, a wider announcement is
  99. made (ant website, main jakarta website, announcements@jakarta.apache.org,
  100. etc).
  101. and also perform a cvs update on files in minotaur's
  102. /www/ant.apache.org/
  103. Announce beta releases at freshmeat.net (Stefan Bodewig is the
  104. owner of Ant's project entry - bug him ;-).
  105. 14. As problems in the beta are discovered, there may be a need for
  106. one or more subsequent betas. The release manager makes this
  107. call. Each time, the versions are updated and the above process is
  108. repeated. Try not to have too many betas.
  109. 15. Try to advertise the need for testing of the betas as much as possible.
  110. This would eliminate the need to release minor patch versions like
  111. we had to do when releasing Ant 1.4.
  112. To monitor the number of downloads, look at the access_log
  113. file under /usr/local/apache2/logs
  114. 16. When the final beta is considered OK, propose a vote on dev@ant to
  115. officially adopt the latest beta as the Ant 1.6 release. If it is passed,
  116. (it usually does,) this would be labelled ANT_16 and built in a similar
  117. fashion to the above process.
  118. 17. BUT
  119. This time the directory you upload the files to is different and
  120. you'll have to do some house-keeping for the old release:
  121. * upload the new release files to
  122. /www/www.apache.org/dist/ant/[source|binary].
  123. * remove the symbolic links from /www/www.apache.org/dist/ant.
  124. * Create proper -current symlinks in /www/www.apache.org/dist/ant/
  125. * Make sure that the symbolic link README.html points to the new
  126. RELEASE-NOTES.
  127. 18. Update the ant.apache.org site :
  128. running cvs update *.html under /www/ant.apache.org should update the
  129. files regenerated and committed in point 5 above (index.html, faq.html,
  130. antnews.html, srcdownload.html, bindownload.html).
  131. Update the online manual too.
  132. 19. Clean up.
  133. * remove the remaining files of the previous release from
  134. /www/www.apache.org/dist/ant/[source|binary].
  135. * remove all *tar* files of the old release from
  136. /www/archive.apache.org/dist/ant/[source|binary] on minotaur,
  137. leave the *zip* files alone.
  138. 20. Now and perhaps during previous betas any changes on the branch must
  139. be merged back into the tree.
  140. 21. At this point in time, the release is done and announcements are made.
  141. PGP-sign your announcement posts.
  142. [[TODO: Identify the mailing lists where announcements are to be made.
  143. Also identify the webpages to which the announcements must go. ]]
  144. Apache mailing lists that should get the announcements:
  145. announcements@jakarta.apache.org, announcements@xml.apache.org,
  146. announce@apache.org, dev@ant and user@ant.
  147. Announce release at freshmeat.net
  148. (Stefan Bodewig is the owner of Ant's project entry - bug him ;-).
  149. Announce release in the usenet groups comp.lang.java.softwaretools
  150. and comp.lang.java.announce.
  151. 22. You can now reacquaint yourself with your family and friends.
  152. (*) the xdocs need to be updated on both the branch and the HEAD revision
  153. because traditionally the ant.apache.org web site reflects the HEAD
  154. revisio of the xdocs, but the users downloading a distribution will get
  155. the xdocs and the generated html from the branch and will complain if there
  156. are discrepancies in version numbers.