Jörg,

Confusingly enough, ${webapp} is a property that's used when resolving the 
paths to the magnolia.properties files (i.e when "parsing" the string 
containing the list of said files in web.xml); the corresponding variable you 
can use in properties files is ${magnolia.webapp}. This corresponds to the name 
of the folder into which Magnolia is deployed (typically "magnoliaAuthor" on 
Tomcat). Similarly, ${servername} will correspond to ${magnolia.servername}, 
and you also have ${magnolia.app.rootdir} which is the full path to the 
deployed app. In 5.0, you'll also have ${magnolia.contextpath}

If you get a chance though, could you plug your debugger into 
info.magnolia.cms.servlets.MgnlServletContextListener#initWebappName and 
info.magnolia.cms.beans.config.PropertiesInitializer#parseStringValue, because 
afaik, unknown properties (which should be the case for ${webapp} iirc) should 
not be substituted, and "webapp" should never be empty anyway... ? Just curious.

Cheers,

-g

On 06 Feb 2011, at 19:37, Jörg Schaible wrote:

> 
> Hi,
> 
> is there any documentation what predefined variables can be used in the 
> magnolia.properties file?
> 
> I tried to use these generic entries:
> magnolia.exchange.history=/var/db/magnolia/history/${webapp}
> magnolia.repositories.home=/var/db/magnolia/repositories/${webapp}
> 
> but it seems that "webapp" is replaced by an empty string.
> 
> - Jörg
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to