Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 15710 invoked from network); 14 Apr 2010 17:50:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 17:50:22 -0000 Received: (qmail 71798 invoked by uid 500); 14 Apr 2010 17:50:21 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 71715 invoked by uid 500); 14 Apr 2010 17:50:21 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 71706 invoked by uid 99); 14 Apr 2010 17:50:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 17:50:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=AWL,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.219.192.166] (HELO smtp.bredband2.com) (83.219.192.166) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 17:50:13 +0000 Received: from [192.168.0.3] (c-94-255-200-136.cust.bredband2.com [94.255.200.136]) (Authenticated sender: ed5133) by smtp.bredband2.com (Postfix) with ESMTPA id 4A63E78AB1 for ; Wed, 14 Apr 2010 19:49:43 +0200 (CEST) Message-ID: <4BC60036.20202@apache.org> Date: Wed, 14 Apr 2010 19:49:42 +0200 From: Dennis Lundberg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [DOC] Generating release notes from changes.xml References: <4BC5229B.9060206@gmail.com> In-Reply-To: <4BC5229B.9060206@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Bredband2-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-Bredband2-MailScanner-From: dennisl@apache.org X-Old-Spam-Status: No On 2010-04-14 04:04, Phil Steitz wrote: > sebb wrote: >> It is useful to be able to generate both the announce message and >> release notes from changes.xml. >> >> One way to do this is as currently implemented in Compress: add a >> profile "relnotes" which overrides the changes template with the >> release-notes.vm template. >> >> One can then do: >> >> mvn changes:announcement-generate # => announcement.vm >> mvn changes:announcement-generate -Prelnotes # => release-notes.vm >> >> The template is assumed to be in src/changes, but it would be better >> if a shared template could be used, for example in commons-site. >> > Have you tested moving it around? IIRC, I tried to move it but the > plugin seemed to be hardcoded to start its path in > src/site/resources. Could be I missed something or this has been > fixed since I last tried. > >> Is that the best place for it? > > I guess the release notes could - almost - be generically generated > this way. I always end up post-editing, but other than formatting, > I guess it can all be standardized. > > On the release announcements, I will personally continue to > hand-craft those; but have no objection to maintaining a boilerplate . >> >> BTW, in order to allow for different workspace layouts, the template >> directory should be expressed as a property, which users can override >> in their settings.xml if they need to. > > >> >> To minimise the need for overrides, the default value for this >> property should reflect a popular workspace layout. In my case >> commons-compress and commons-parent etc are all at the same level, but >> perhaps it is more usual to use some other layout. >> > This seems ugly. I guess there is no way to specify the file using a > URL? Back in the m1 days, we used to all have to have commons-build > checked out in the right location for site builds to work and that > was a PITA. If the choice is between fiddling with settings.xml > and/or other local workspace requirements and just duplicating the > velocity templates, I would opt to duplicate the templates for those > who wish to use them. The less mysterious, > not-in-the-component-checkout stuff we have to deal with, the better. It is possible to have one or more templates in a separate resources-module with its own release cycle. Any component that wishes to use the template can add a dependency on the resources-module and thereby get access to the templates in it. We have this set up at my day job. Let me know if you want me to set it up for Commons. > > Phil > > >> [The idea would be to add the profile to the next release of commons-parent] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org