Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 71131 invoked from network); 24 Jul 2008 08:54:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 08:54:55 -0000 Received: (qmail 36854 invoked by uid 500); 24 Jul 2008 08:54:48 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 36798 invoked by uid 500); 24 Jul 2008 08:54:48 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 36787 invoked by uid 99); 24 Jul 2008 08:54:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 01:54:48 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of grek@tuffmail.com designates 216.86.168.178 as permitted sender) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 08:53:53 +0000 Received: from [192.168.1.211] (unknown [217.116.183.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 3816D23E49F for ; Thu, 24 Jul 2008 04:54:18 -0400 (EDT) Message-ID: <4888432D.9010609@tuffmail.com> Date: Thu, 24 Jul 2008 10:54:05 +0200 From: Grzegorz Kossakowski User-Agent: Thunderbird 2.0.0.12 (X11/20071114) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Java bean puzzle. using ecliplse plugin or not. References: <495295EE69BB4B4AAE73D1B0D8AD551803058063@ATLAS.computas.int> <487D07D4.1030001@lampsacos.demon.co.uk> <4885B490.10401@searchevent.co.uk> <488614D6.8050602@lampsacos.demon.co.uk> <488655B0.4@searchevent.co.uk> <4888425C.7060200@tuffmail.com> In-Reply-To: <4888425C.7060200@tuffmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Grzegorz Kossakowski pisze: > David Legg pisze: >> Ken, >>> Thankyou very much, David. I can confirm that the spring-bean now >>> does work properly. >> >> Thanks for confirming that. >> >>> How do we report this to the developers? >> >> Normally, you would open a new item in the bugs database (called JIRA) >> [1]. >> >> However, I've just looked at the latest version of that file in the >> SVN repository and it looks like it is fixed already. I think it is >> in the 'trunk' at this location: - >> >> [svn >> trunk]\tools\archetypes\cocoon-22-archetype-block\src\main\resources\archetype-resources\src\main\resources\COB-INF\demo\spring-bean.jx.xml >> >> >> The code looks like this: - >> >> >> ${groupId}:${artifactId} >> #{message} >> >> >> I suspect though that getting this change incorporated into the wide >> world is a little more involved than just issuing a new release of >> Cocoon because someone has to upload the new version to the official >> maven site I think. > > Unfortunately, it's not fixed in trunk. Take a look at the history of > this file[1] and you will see that is has not changed for more than a > year now. > > The problem we see here is that archetype plug-in for Maven tries to > find all expressions in files that it creates and tries to resolve these > expressions to correct values. The good example is ${artifactId} > expression that we see above. Archetype plug-in will resolve it to > artifactId of the block that it prepares. > > Unfortunately, #{message} is treated as an expressions too but it > shouldn't. It's aimed at archetype plug-in but Cocoon's template generator. > > According to this[2] page (archetype uses velocity) the fix should be > easy: we need to escape "#" character using "\#" and everything should > work just fine... > >> Anyhow... the main thing is it has been covered and at some point the >> corrected version will be available. In the meantime we can sit back; >> smug in the knowledge that we know the answer ;-) > > As you see, there is a bug here so one should create a JIRA report. :-) > > I'll try to fix this issue ASAP. Argh... Forgot to provide links: [1] http://svn.eu.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/src/main/resources/COB-INF/demo/spring-bean.jx.xml?view=log [2] http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#getting_literal -- Grzegorz Kossakowski --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org