|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Get the SVN revision number into the sitemap on 2.2All,
We're in a system test phase, and it would be useful for the testers to know which Subversion revision they are testing. Thus, I'd like to get this into the XSLT as a variable, which is easy if the sitemap can get hold of it somehow. So, I figured maven could get the revision number somehow at build time, but I couldn't find any concrete way of doing it. Is there a way? Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: kjetil.kjernsmo@... Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Get the SVN revision number into the sitemap on 2.2On Fri, Jul 4, 2008 at 1:11 PM, Kjetil Kjernsmo
<Kjetil.Kjernsmo@...> wrote: > ...So, I figured maven could get the revision number somehow at build time, but I > couldn't find any concrete way of doing it. Is there a way?... The maven buildnumber plugin does this, see http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html -Bertrand --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Get the SVN revision number into the sitemap on 2.2On Friday 04 July 2008 13:27:32 Bertrand Delacretaz wrote:
> <Kjetil.Kjernsmo@...> wrote: > > ...So, I figured maven could get the revision number somehow at build > > time, but I couldn't find any concrete way of doing it. Is there a > > way?... > > 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? Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: kjetil.kjernsmo@... Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Get the SVN revision number into the sitemap on 2.2On Fri, Jul 4, 2008 at 1:41 PM, Kjetil Kjernsmo
<Kjetil.Kjernsmo@...> 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. -Bertrand --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Get the SVN revision number into the sitemap on 2.2Bertrand Delacretaz pisze:
> On Fri, Jul 4, 2008 at 1:41 PM, Kjetil Kjernsmo > <Kjetil.Kjernsmo@...> 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: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Get the SVN revision number into the sitemap on 2.2On Saturday 05 July 2008 21:17:57 Grzegorz Kossakowski wrote:
> 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 Ah, OK. That sounds feasible indeed. Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: kjetil.kjernsmo@... Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |