cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <g...@tuffmail.com>
Subject Re: [2.2] Built-in properties available in the sitemap
Date Wed, 02 Apr 2008 19:52:04 GMT
Luca Morandini pisze:
> 
> 
> Been there, done that:
>       <map:match pattern="action*">
>         <map:call function="{1}">
>           <map:parameter name="javahome" value="${java.home}"/>
>           <map:parameter name="gjavahome" value="{global:java.home}"/>
>           <map:parameter name="version" value="{global:project.version}"/>
>         </map:call>
>       </map:match>
> 
> function login() {
> cocoon.log.debug("XXX:" + cocoon.parameters["javahome"]); // XXX   
> cocoon.log.debug("XXX:" + cocoon.parameters["gjavahome"]); // XXX   
> cocoon.log.debug("XXX:" + cocoon.parameters["version"]); // XXX   
> ...
> }
> 
> 2008-04-02 21:32:15,233 btpool0-5 DEBUG cocoon - 
> XXX:/usr/java/jdk1.5.0_12/jre
> 2008-04-02 21:32:15,233 btpool0-5 DEBUG cocoon - 
> XXX:/usr/java/jdk1.5.0_12/jre
> 2008-04-02 21:32:15,233 btpool0-5 DEBUG cocoon -
> XXX:
> 
> So, it seems either syntax (${java.home} and {global:java.home}) is 
> fine, but Maven's properties are not visible to the sitemap, even when 
> using the jetty plugin.

Luca, what do you expect to get from project.version property? Version of block you are in,
version 
of webapp module assembling all blocks or something else?

May I ask what do you want to achieve?

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message