Not  really: both cfg and json are managed in Karaf Config bundle.

So, I have to add a flag there to disable json completely.

However, when you do config.update(), if you provide Felix.fileinstall.filename 
property with cfg, it won’t generate json file.
I guess you don’t specify the fileinstall property.

I should also change default to cfg (instead of json).

Regards
JB

> Le 17 mars 2021 à 11:03, Stefan Günst <[email protected]> a écrit :
> 
> Hi JB,
> 
> not really!
> 
> I use ConfigurationAdmin and than "config.update(props)“ 
> 
> So i think we must disable json global ….
> 
> Is there a way to do this perhaps with blacklisting bundles ?
> 
> Regards
> 
> Stefan
> 
> 
> 
> 
>> Am 17.03.2021 um 10:47 schrieb jbonofre [via Karaf] 
>> <[email protected] 
>> <mailto:[email protected]>>:
>> 
>> Hi, 
>> 
>> Understood. 
>> 
>> I think we should create cfg by default and add a option to config:edit to 
>> "flag" we want json file. 
>> 
>> Is it acceptable for you ? 
>> 
>> Regards 
>> JB 
>> 
>> > Le 17 mars 2021 à 10:09, Stefan Günst <[hidden email] 
>> > <x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=0>> a écrit : 
>> > 
>> > Hi JB, 
>> > 
>> > yes at the moment i still using .cfg overall and dont’t want to mix this. 
>> > Generate new configs by code defaults to json what i want to avoid. 
>> > 
>> > Regards 
>> > 
>> > Stefan 
>> > 
>> > 
>> > 
>> >> Am 17.03.2021 um 09:53 schrieb Jean-Baptiste Onofre <[hidden email] 
>> >> <x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=1>>: 
>> >> 
>> >> Hi Stefan, 
>> >> 
>> >> What do you mean ? 
>> >> If you still use *.cfg files, it’s still properties. 
>> >> 
>> >> JSON config format is used when you use *.json file. 
>> >> 
>> >> Do you mean when you create a config via config:* shell commands ? 
>> >> 
>> >> Regards 
>> >> JB 
>> >> 
>> >>> Le 17 mars 2021 à 09:50, Stefan Günst <[hidden email] 
>> >>> <x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=2>> a écrit : 
>> >>> 
>> >>> Hi, 
>> >>> 
>> >>> what is the best way to disable the JSON-configformat globally in Karaf 
>> >>> 4.3.0? 
>> >>> 
>> >>> 
>> >>> Regards 
>> >>> 
>> >>> Stefan 
>> >> 
>> >
>> 
>> 
>> 
>> If you reply to this email, your message will be added to the discussion 
>> below:
>> http://karaf.922171.n3.nabble.com/Howto-disable-JSON-Configformat-global-in-Karaf-4-3-0-tp4059705p4059708.html
>>  
>> <http://karaf.922171.n3.nabble.com/Howto-disable-JSON-Configformat-global-in-Karaf-4-3-0-tp4059705p4059708.html>
>> To unsubscribe from Karaf - User, click here 
>> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=930749&code=c3RlZmFuLmd1ZW5zdEBtZS5jb218OTMwNzQ5fDU2MzIzMjg=>.
>> NAML 
>> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>

Reply via email to