You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Achim Nierbeck <bc...@googlemail.com> on 2010/12/10 21:06:27 UTC
howto provide optional feature dependent configurations?
Hi,
Thinking about KARAF-309, how is it or would it be possible to
provide extra configuration files via features.
In this special case this configuration file is only needed when pax-web
is available.
A totally different solution would be to place it into the etc folder even
though it might not be needed. Any ideas?
Greetings, Achim
Re: howto provide optional feature dependent configurations?
Posted by Achim Nierbeck <bc...@googlemail.com>.
I like that idea, lets give it a try.
If someone really wants to do this extension thing, it might be good to
overwrite that configuration then.
Thanks, Achim
> well... I'm a little bit afraid of situations wherer feature A likes
> to extend a config file provided by featuer B... But I think the
> easiest solution would be to also use them via mvn? Something like:
>
> <feature ...>
> <configfile finalname="etc/xyz.xml">mvn:groupId/artifactId/xml/jettyconfig</configfile>
> </feature>
>
> WDYT?
>
> Kind regards,
> Andreas
>
> On Fri, Dec 10, 2010 at 9:06 PM, Achim Nierbeck <bc...@googlemail.com> wrote:
>> Hi,
>> Thinking about KARAF-309, how is it or would it be possible to
>> provide extra configuration files via features.
>> In this special case this configuration file is only needed when pax-web
>> is available.
>> A totally different solution would be to place it into the etc folder even
>> though it might not be needed. Any ideas?
>>
>> Greetings, Achim
>>
>>
Re: howto provide optional feature dependent configurations?
Posted by Andreas Pieber <an...@gmail.com>.
well... I'm a little bit afraid of situations wherer feature A likes
to extend a config file provided by featuer B... But I think the
easiest solution would be to also use them via mvn? Something like:
<feature ...>
<configfile finalname="etc/xyz.xml">mvn:groupId/artifactId/xml/jettyconfig</configfile>
</feature>
WDYT?
Kind regards,
Andreas
On Fri, Dec 10, 2010 at 9:06 PM, Achim Nierbeck <bc...@googlemail.com> wrote:
> Hi,
> Thinking about KARAF-309, how is it or would it be possible to
> provide extra configuration files via features.
> In this special case this configuration file is only needed when pax-web
> is available.
> A totally different solution would be to place it into the etc folder even
> though it might not be needed. Any ideas?
>
> Greetings, Achim
>
>