Bertrand Delacretaz pisze:
On Fri, Jul 4, 2008 at 1:41 PM, Kjetil Kjernsmo
<[EMAIL PROTECTED]> wrote:
On Friday 04 July 2008 13:27:32 Bertrand Delacretaz wrote:
... The maven buildnumber plugin does this, see
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html
Ah, great, cool! But how do I communicate the ${buildNumber} to the sitemap,
then?...

I haven't used that with Cocoon, but what I did is writing it to the
manifest of a jar as explained in the above page. To access that from
a sitemap I guess you'd need to write an input module.

I'm not sure if it's not that Cocoon already provides means for reading the 
contents of manifest file.

Anyway, you can easily create a simple XML file in your resources directory containing ${buildNumber}. Then you need to enable filtering for that resource as shown here:
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

--
Best regards,
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to