Thanks JB,
They aren't exactly java .properties files, at least .config files written
by Felix' Config Admin. The properties in that case can be preceded with
type information, like:
property=B"true"
Which gets turned into a Dictionary entry ["property", Boolean.TRUE].
Is this the same for .cfg or are the .cfg files standard java properties?
And, does anyone know where the format of the .config files are published
besides in the source code? I should probably ask this one on the felix
forums but the same folks are likely participants here as well and it
would be good to document it in this thread.
On 2013-09-04 12:18 PM, "Jean-Baptiste Onofré" <[email protected]> wrote:
>There is: .config won't be loaded automatically by fileinstall by
>default (or you have to change etc/config.properties). If you talk in
>term of "content", the suffix/extension doesn't matter: it's properties
>file.
>
>Regards
>JB
>
>On 09/04/2013 09:07 PM, Matthew Bishop wrote:
>> So there is no difference between .cfg and .config?
>>
>>
>>
>> --
>> Matthew Bishop
>> Senior Product Architect
>> Elastic Path Inc.
>>
>> On 2013-09-04, at 11:43 AM, "Jean-Baptiste Onofré" <[email protected]>
>>wrote:
>>
>>> Hi,
>>>
>>> if you take a look in etc/config.properties, you will find the
>>>configuration of ConfigAdmin/FileInstall:
>>>
>>> felix.fileinstall.dir = ${karaf.base}/etc
>>> felix.fileinstall.filter = .*\\.cfg
>>> felix.fileinstall.poll = 1000
>>> felix.fileinstall.noInitialDelay = true
>>> felix.fileinstall.log.level = 3
>>>
>>> So, the filter means that only .cfg file are considered by FileInstall
>>>(and loaded in ConfigAdmin).
>>>
>>> By default, .config file will be ignored by FileInstall.
>>>
>>> The "Karaf standard" is to use .cfg file for "auto-loading" in the etc
>>>folder.
>>>
>>> Regards
>>> JB
>>>
>>> On 09/04/2013 07:48 PM, Matthew Bishop wrote:
>>>> What is the difference between config admin file types .cfg and
>>>>.config?
>>>>
>>>> Also I can't find any specs for these files. I am using to source
>>>>from Felix as my guide but that doesn't seem like the right answer :)
>>>>
>>>>
>>>>
>>>> Matthew Bishop, Senior Architect
>>>> Mobile: +1-604-218-8102
>>>> Email: [email protected]
>>>>
>>>> Elastic Path Software Inc.
>>>> Web: www.elasticpath.com
>>>> Blog: www.getelastic.com
>>>> Community: grep.elasticpath.com
>>>> Careers: www.elasticpath.com/jobs
>>>>
>>>> Confidentiality Notice: This message is intended only for the use of
>>>>the designated addressee(s), and may contain information that is
>>>>privileged, confidential and exempt from disclosure. Any unauthorized
>>>>viewing, disclosure, copying, distribution or use of information
>>>>contained in this e-mail is prohibited and may be unlawful. If you
>>>>received this e-mail in error, please reply to the sender immediately
>>>>to inform us you are not the intended recipient and delete the email
>>>>from your computer system. Thank you.
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> [email protected]
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>>
>>
>> Matthew Bishop, Senior Architect
>> Mobile: +1-604-218-8102
>> Email: [email protected]
>>
>> Elastic Path Software Inc.
>> Web: www.elasticpath.com
>> Blog: www.getelastic.com
>> Community: grep.elasticpath.com
>> Careers: www.elasticpath.com/jobs
>>
>> Confidentiality Notice: This message is intended only for the use of
>>the designated addressee(s), and may contain information that is
>>privileged, confidential and exempt from disclosure. Any unauthorized
>>viewing, disclosure, copying, distribution or use of information
>>contained in this e-mail is prohibited and may be unlawful. If you
>>received this e-mail in error, please reply to the sender immediately to
>>inform us you are not the intended recipient and delete the email from
>>your computer system. Thank you.
>>
>>
>
>--
>Jean-Baptiste Onofré
>[email protected]
>http://blog.nanthrax.net
>Talend - http://www.talend.com
>
Matthew Bishop, Senior Architect
Mobile: +1-604-218-8102
Email: [email protected]
Elastic Path Software Inc.
Web: www.elasticpath.com
Blog: www.getelastic.com
Community: grep.elasticpath.com
Careers: www.elasticpath.com/jobs
Confidentiality Notice: This message is intended only for the use of the
designated addressee(s), and may contain information that is privileged,
confidential and exempt from disclosure. Any unauthorized viewing, disclosure,
copying, distribution or use of information contained in this e-mail is
prohibited and may be unlawful. If you received this e-mail in error, please
reply to the sender immediately to inform us you are not the intended recipient
and delete the email from your computer system. Thank you.