2009/3/16 Juan José Vázquez Delgado <[email protected]>:
>> Can I use te file  sling.properties to override properties of the
>> current Sling components ?
>
> Only some of them. For instance, you can initialize the JCR repository
> home with "sling.repository.home" property.

ok

>
>> For example, I would like to build a custom war which override the
>> property "type.noncollections" for the component
>> org.apache.sling.jcr.webdav.impl.servlets.SimpleWebDavServlet
>>
>> Can I write in the sling.properties :
>> org.apache.sling.jcr.webdav.impl.servlets.SimpleWebDavServle.type.noncollections=MyCustomValue
>>
>> I'm just wondering if the syntax is correct.
>
> AFAIK, not at the moment. In the other hand, you can modify this
> property with the Apache Felix console [1] after launchpad webapp
> starts.

ok
>
> [1] http://localhost:8888/system/console
>
I'm agree with you but I would like to avoid manual operations from
the console in some conditions. In my case, I have to build a custom
sling war and give it to a production team who don't want to use the
console to install correctly the application.  In such case, it should
be nice to have a way to override some component properties when
building a custom sling app.


br,
Christophe

Reply via email to