You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by jochenw <jo...@googlemail.com> on 2016/10/03 13:43:18 UTC

Configuration not loaded from karaf.etc with hyphen in .cfg file name

Hi,

when storing a new config file in Karaf's etc folder, e.g. test.cfg, the
configuration is created automatically. When storing the config file
test-test.cfg, the configuration is not created. The same happens when
creating a custom fileinstall configuration in another folder with
felix.fileinstall.filter = .*\\.cfg (the first dot should include the hyphen
- but as soon as the .cfg file name contains it, the respective
configuration is not created).

Is this a (known) bug of fileinstall?

Best Regards,
Jochen



--
View this message in context: http://karaf.922171.n3.nabble.com/Configuration-not-loaded-from-karaf-etc-with-hyphen-in-cfg-file-name-tp4048216.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Configuration not loaded from karaf.etc with hyphen in .cfg file name

Posted by jochenw <jo...@googlemail.com>.
Yes. Just found it here:
http://felix.apache.org/documentation/subprojects/apache-felix-file-install.html

Thanks!

Regards,
Jochen



--
View this message in context: http://karaf.922171.n3.nabble.com/Configuration-not-loaded-from-karaf-etc-with-hyphen-in-cfg-file-name-tp4048216p4048218.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Configuration not loaded from karaf.etc with hyphen in .cfg file name

Posted by Guillaume Nodet <gn...@apache.org>.
It's not a bug, it's a feature ;-)
Hyphens are used to identify factory configuration pid, to separate the
factory pid from the unique part.

2016-10-03 15:43 GMT+02:00 jochenw <jo...@googlemail.com>:

> Hi,
>
> when storing a new config file in Karaf's etc folder, e.g. test.cfg, the
> configuration is created automatically. When storing the config file
> test-test.cfg, the configuration is not created. The same happens when
> creating a custom fileinstall configuration in another folder with
> felix.fileinstall.filter = .*\\.cfg (the first dot should include the
> hyphen
> - but as soon as the .cfg file name contains it, the respective
> configuration is not created).
>
> Is this a (known) bug of fileinstall?
>
> Best Regards,
> Jochen
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Configuration-not-loaded-from-karaf-etc-with-hyphen-in-
> cfg-file-name-tp4048216.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/