Hey Luca,
i created a custom maven plugin using this guide [1]
it extracts project information and writes it to a file in my resource 
directory.

if you're interested i can send you the plugin.

regards, matthias

[1] http://maven.apache.org/guides/plugin/guide-java-plugin-development.html



----- Ursprüngliche Mail ----
Von: Matthias Müller <[EMAIL PROTECTED]>
An: [email protected]
Gesendet: Freitag, den 24. Oktober 2008, 10:53:43 Uhr
Betreff: AW: [C2.2] Display Block Information

hmm. i didn't think that it would be so cumbersome. i like your approach of 
generating an additional property entry while building the project, but in my 
case it would be the best to refer to the block information generated by the 
mvn site plugin.

regards, matthias



----- Ursprüngliche Mail ----
Von: Luca Morandini <[EMAIL PROTECTED]>
An: [email protected]
Gesendet: Donnerstag, den 23. Oktober 2008, 17:11:24 Uhr
Betreff: Re: [C2.2] Display Block Information

Matthias Müller wrote:
> Hi list,
> 
> does someone have an idea how to access block information from within
> a xslt stylesheet / jx template / sitemap? my idea is to display the
> current version and the blocks name, description, etc. on a special
> "about" page. 

Been there, no way to do that (well, not directly):
http://www.mail-archive.com/[email protected]/msg41568.html

My best guess is that the antrun Maven plugin could be used to append at 
build-time block info to the settings (specified in properties files) 
used by Cocoon at run-time.

Regards,

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


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




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




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

Reply via email to