I haven't looked at the code for this, but a) I'd love it in 2.1 and b)
is it pluggable? We already have an XML file with some configuration in
it including some system properties that need to be set. It would be
nice if I could leverage the same file for this.
Ralph
Carsten Ziegeler wrote:
It's already implemented in 2.2 and works :) I used the famous
properties format for this, so you can define a property file with all
the settings from web.xml and don't need any init parameters in web.xml
at all. And of course the CLI can use the same property file.
And you can simply override values on startup by specifying the property
on the command line.
Just a silly example: the cocoon.xconf is at WEB-INF, now you have a
debug xconf for debugging, now you can startup Cocoon with
cocoon -Dconfiguration=mydebug.xconf and that's it.
I'm planning to extend this mechanism in the next days, so every block
can have it's own file.
I wrote an introduction to this some months ago, but at that time noone
really was interested in it :(
Carsten