Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 55585 invoked from network); 29 Feb 2008 08:50:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 08:50:46 -0000 Received: (qmail 53596 invoked by uid 500); 29 Feb 2008 08:50:42 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 53568 invoked by uid 500); 29 Feb 2008 08:50:42 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 53559 invoked by uid 99); 29 Feb 2008 08:50:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 00:50:42 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 08:50:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 13F2E1A9838; Fri, 29 Feb 2008 00:50:13 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r632261 - in /ant/ivy/core/trunk/doc: dev.html dev/ dev/makerelease.html toc.json Date: Fri, 29 Feb 2008 08:50:11 -0000 To: notifications@ant.apache.org From: xavier@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080229085014.13F2E1A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: xavier Date: Fri Feb 29 00:50:01 2008 New Revision: 632261 URL: http://svn.apache.org/viewvc?rev=632261&view=rev Log: extract make a release page Added: ant/ivy/core/trunk/doc/dev/ ant/ivy/core/trunk/doc/dev/makerelease.html Modified: ant/ivy/core/trunk/doc/dev.html ant/ivy/core/trunk/doc/toc.json Modified: ant/ivy/core/trunk/doc/dev.html URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/doc/dev.html?rev=632261&r1=632260&r2=632261&view=diff ============================================================================== --- ant/ivy/core/trunk/doc/dev.html (original) +++ ant/ivy/core/trunk/doc/dev.html Fri Feb 29 00:50:01 2008 @@ -96,181 +96,7 @@ If you use this plugin, you will many errors in Ivy. As we said, following strict checkstyle rules is a work in progress and we used to have pretty different code conventions (like using _ as prefix for private attributes), so we still have things to fix. We usually use the filter in the problems view to filter out checkstyle errors from this view, which helps to know what the real compilation problem are. Besides this plugin we also recommend to use a subversion plugin, subversive or subclipse being the two options currently available in the open source landscape. -

Making a release

-

Requirements

-Requirements for making a release are similar to the requirements for building from source, except that sun jdk 1.6 and ant 1.7 are required. -

Procedure

-

1. Check the files which needs to be updated for the release.

-On the trunk, check that files which require update for the release are up to date. -This includes particularly: -RELEASE_NOTES -CHANGES -README -

2. Create a release branch

-This will allow to work separately from other developers, in case you need any last modification. - -svn copy https://svn.apache.org/repos/asf/ant/ivy/core/trunk \ - https://svn.apache.org/repos/asf/ant/ivy/core/branches/2.0.0-beta1 \ - -m "Creating a release branch for 2.0.0-beta1." - -

3. Check out the branch

- -svn co https://svn.apache.org/repos/asf/ant/ivy/core/branches/2.0.0-alpha1 ivy-2.0.0-beta1 - -

4. Double check the files which need to be updated for the release.

-Check again that files have proper revision information. -It's also time to update the documentation template files which will be used for doc generation to include the version information in the page title. -For instance in - -doc/template.html -doc/printTemplate.html - -replace - -${title} | Ivy Documentation - -by - -${title} | Ivy 2.0.0-beta1 Documentation - -

5. Add release note page in the documentation.

-Open the file doc/index.html with your favorite browser, and click on the plus button in the upper right. Choose "Release Notes" as title, and "release-notes" as page id. - -Then edit the page (hit the first button at the upper right), and copy the content of the RELEASE_NOTES file. - -You can also add the announcement for the release if it's already ready. If this is an incubator version, add the usual incubator disclaimer too. - -Move the page up in the TOC using the arrow button in the toolbar at the upper right, so that it's the first child page under the "Documentation" page. - -If you take the time to make the content of the release notes more "xooki compliant" (by removing unnecessary end of lines and adding h2 h3 and h4 tags), the page could then look like something like that: -http://ant.apache.org/ivy/history/2.0.0-alpha-1.html - -

6. Commit your changes

- -svn add doc/release-notes.html -svn ci -m "update templates and add release notes in documentation." - -

7. Check that you have no pending modifications

- -svn status - -If your working copy is clean, you can launch the release script. If it isn't, make sure to clean it properly. Sometimes you may need to call ant clean-all if you have started to work with ant builds. If you are confused about your working copy state, delete it and check it out again. -

8. Launch the release script

- -ant -Dbuild.version=2.0.0-beta1 -Dstatus=milestone -f build-release.xml release - -The status should be release only for final releases, and milestone for any other intermediate release. -If anything is wrong, fix and go back to step 4. -If the release script is successful, release artifacts will be waiting for you in the build/distrib directory. -

9. Verify the release

-Check that all zips can be opened correctly, and that running 'ant' after unzipping the source distribution works properly. -You can also do a smoke test with the generated ivy.jar , to see if it is able to resolve properly a basic module (for instance you can run some tutorials provided in the src/example directory in all distributions). -

10. Sign and upload the artifacts

-It's now time to sign the release artifacts and upload them to a location accessible by other Apache commiters. - -Here is a simple way to sign the files using gnupg: - -gpg --armor --output file.zip.asc --detach-sig file.zip - - -Here is a ruby script you can use to sign the files: - -require 'find' - -Find.find('build/distrib') do |f| - `gpg --armor --output #{f}.asc --detach-sig #{f}` if File.file?(f) && ['.zip', '.gz', '.jar', '.pom'].include?(File.extname(f)) -end - -Be prepared to enter your passphrase several times if you use this script, gpg will ask for your passphrase for each file to sign. - -When you're done upload the content of the distrib directory to a publicly accessible web site, your apache personal site being a good location for this. Make sure you include some kind of disclaimer somewhere to inform people the release is not approved yet. - -You can for example add a HEADER.html like this: - -

WARNING: files available here are NOT an Apache approved release yet.

-
- -

11. Call for a vote to approve the release

-Cast a vote to approve the release on the dev@ant.apache.org mailing list. - -Here is an example: - -Subject: [VOTE] Ivy ${version} Release - -I have built a release candidate for Ivy ${version} - -You can download it from this URL: ${url} - -Do you vote for the release of these binaries? - -[ ] Yes -[ ] No - -Regards, - -${me}, Ivy ${version} release manager - -

12. Tag the svn repository

-Now that the release is approved, it is time to tag the svn repo - -svn copy https://svn.apache.org/repos/asf/ant/ivy/core/branches/2.0.0-beta1 \ - https://svn.apache.org/repos/asf/ant/ivy/core/tags/2.0.0-beta1 \ - -m "Tag release 2.0.0-beta1." - -

13. Upload to public repository

-If the release is approved, it's now time to make it public by uploading it to the public Apache distrib repository (i.e. /www/www.apache.org/dist/ant/ivy/[version] on people.a.o). - -Copy also the staging maven 2 repository to apache maven 2 rsync repo: -/www/people.apache.org/repo/m2-ibiblio-rsync-repository - -

14. Update the web site

-Add a link to the released version documentation in the web site. - -To do so, you need to: -
    -
  1. add a svn externals reference to the documentation
  2. -edit the svn properties of site/history, and in the svn:externals property, add a line like this one: - -2.0.0-beta1 https://svn.apache.org/repos/asf/ant/ivy/core/branches/2.0.0-beta1/doc - -
  3. edit the toc.json file in the site component of Ivy
  4. -and add something like that: - -{ - "title":"2.0.0-beta1", - "importRoot":"history/2.0.0-beta1", - "importNode":"index" -} - -
  5. Add a call to init-imported-version in site/build.xml
  6. -In the init-imported-history target, add a task call like this one: - - - -
-Then launch "ant init-imported-history" in the site directory, and check the documentation now has the released version in the history, and that this documentation can be accessed with no problem with a unified TOC. - -Then you can update the release notes page of the imported documentation if necessary, to include the announcement for example. - -It's time to update the download image used on the home page and the download page. Use site/images/ivy-dl.xcf as a basis if you have gimp installed. Then you can update the home page to refer to this image, and add a news item announcing the new version. Update also the download page with the new image and update the links to the download location. - -You are now ready to commit your changes (make sure to commit changes in imported locations too), and update the online site: - -ant clean publish-site - - -

15. Announce

-Announce the release on the dev@ant.a.o, ivy-user@ant.a.o, user@ant.apache.org and announce@apache.org mailing lists. -Announce also the release on Ivy web site by editing the doc/index.html on the trunk. -You can also announce the release on popular web sites, like freshmeat.net (xavier is the owner of the Ivy project on freshmeat), javalobby.org, theserverside.com, dzone.com, ... -

16. Update this doc

-If you feel like anything is missing or misleading in this release doc, update it as soon as you encounter the problem. -

17. Merge your modifications back to the trunk if necessary.

-Modifications on the template files do not need to be merged, but if you had troubles during your release you may want to merge your fixes back to the trunk. -

18. Prepare next release

-Update the file version.properties with the version of the next release so that anyone building from the trunk will obtain jar with the correct version number. - -Release the version in jira, and create a new unreleased version for the next planned version. + Added: ant/ivy/core/trunk/doc/dev/makerelease.html URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/doc/dev/makerelease.html?rev=632261&view=auto ============================================================================== --- ant/ivy/core/trunk/doc/dev/makerelease.html (added) +++ ant/ivy/core/trunk/doc/dev/makerelease.html Fri Feb 29 00:50:01 2008 @@ -0,0 +1,205 @@ + + + + + + + + + + + + + Modified: ant/ivy/core/trunk/doc/toc.json URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/doc/toc.json?rev=632261&r1=632260&r2=632261&view=diff ============================================================================== --- ant/ivy/core/trunk/doc/toc.json (original) +++ ant/ivy/core/trunk/doc/toc.json Fri Feb 29 00:50:01 2008 @@ -749,6 +749,13 @@ "children": [ ] + }, + { + "id":"dev/makerelease", + "title":"Making a release", + "children": [ + + ] } ] }