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 11 kB

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