That's right, unless you cannot access a WebContext (for example if you are
inside a scheduled command, in this case a SimpleContext is passed to you..).
The only option, afaik, is to use the property "magnolia.app.rootdir"
[code]SystemProperty.getProperty("magnolia.app.rootdir") + "/docroot" +
your-path..[/code]
HTH, Matteo
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=8edfc2c4-d03b-4efd-ba9d-2d9c21d8757f
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------