Hi, Yes, it’s what I said in my previous email: if you set Felix.fileinstall.filename property with cfg extension, it will work as well.
Regards JB > Le 17 mars 2021 à 20:00, Stefan Günst <[email protected]> a écrit : > > Hi JB, > > just for info. > > I workaround it by first creating an empty configfile (cfg) in etc for PID > and then config.update() works as expected and use this propertiesfile > without creating json. > > Regards > > Stefan > > > > >> Am 17.03.2021 um 11:32 schrieb jbonofre [via Karaf] >> <[email protected] >> <mailto:[email protected]>>: >> >> 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 <[hidden email] >>> <x-msg://81/user/SendEmail.jtp?type=node&node=4059710&i=0>> 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] <[hidden email] >>>> <x-msg://81/user/SendEmail.jtp?type=node&node=4059710&i=1>>: >>>> >>>> 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 <<a >>>> > href="x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=0 >>>> > <x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=0>" >>>> > target="_top" rel="nofollow" link="external" class="">[hidden email]> 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 <<a >>>> >> href="x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=1 >>>> >> <x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=1>" >>>> >> target="_top" rel="nofollow" link="external" class="">[hidden email]>: >>>> >> >>>> >> 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 <<a >>>> >>> href="x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=2 >>>> >>> <x-msg://76/user/SendEmail.jtp?type=node&node=4059708&i=2>" >>>> >>> target="_top" rel="nofollow" link="external" class="">[hidden email]> >>>> >>> 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 >>>> <applewebdata://A5C87F5B-8C1D-46C9-B236-59AEA9247D04>. >>>> 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> >> >> >> >> 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-tp4059705p4059710.html >> >> <http://karaf.922171.n3.nabble.com/Howto-disable-JSON-Configformat-global-in-Karaf-4-3-0-tp4059705p4059710.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>
