You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Jochen Walz <jo...@googlemail.com> on 2022/06/02 15:47:32 UTC
Karaf 4.3.x: possibility to not trigger JsonConfigInstaller for a specific folder?
Hi,
In Karaf 4.2.x, we implemented a watcher for JSON files in a specific folder, implementing the ArtifactInstaller interface and adding a felix-fileinstall configuration on that folder.
With Karaf 4.3.x, changes in that folder triggers the Karaf JsonConfigInstaller which throws an error because the JSON file has an unexpected format.
Is there any possibility to still use felix-fileinstall to receive notifications on added/modified/deleted JSON files in a specific folder, but have JsonConfigInstaller keep its fingers off these files? Other than using some different extension like "somefile.myownjson".
Regards,
Jochen
Re: Karaf 4.3.x: possibility to not trigger JsonConfigInstaller for a specific folder?
Posted by Jochen Walz <jo...@googlemail.com>.
That would be great! Thanks, JB!
Regards,
Jochen
Am 2. Juni 2022 21:31:51 MESZ schrieb "Jean-Baptiste Onofré" <jb...@nanthrax.net>:
>Hi Jochen,
>
>I don't see an easy way as you want to use .json extension.
>
>I can add an env variable/system property to change the extension
>handled by the JsonConfigInstaller. That's probably the only clean way
>to achieve this.
>
>If you agree, I can create a Jira and do the change.
>
>Regards
>JB
>
>On Thu, Jun 2, 2022 at 5:47 PM Jochen Walz
><jo...@googlemail.com> wrote:
>>
>> Hi,
>>
>> In Karaf 4.2.x, we implemented a watcher for JSON files in a specific folder, implementing the ArtifactInstaller interface and adding a felix-fileinstall configuration on that folder.
>>
>> With Karaf 4.3.x, changes in that folder triggers the Karaf JsonConfigInstaller which throws an error because the JSON file has an unexpected format.
>>
>> Is there any possibility to still use felix-fileinstall to receive notifications on added/modified/deleted JSON files in a specific folder, but have JsonConfigInstaller keep its fingers off these files? Other than using some different extension like "somefile.myownjson".
>>
>> Regards,
>> Jochen
Re: Karaf 4.3.x: possibility to not trigger JsonConfigInstaller for a specific folder?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jochen,
I don't see an easy way as you want to use .json extension.
I can add an env variable/system property to change the extension
handled by the JsonConfigInstaller. That's probably the only clean way
to achieve this.
If you agree, I can create a Jira and do the change.
Regards
JB
On Thu, Jun 2, 2022 at 5:47 PM Jochen Walz
<jo...@googlemail.com> wrote:
>
> Hi,
>
> In Karaf 4.2.x, we implemented a watcher for JSON files in a specific folder, implementing the ArtifactInstaller interface and adding a felix-fileinstall configuration on that folder.
>
> With Karaf 4.3.x, changes in that folder triggers the Karaf JsonConfigInstaller which throws an error because the JSON file has an unexpected format.
>
> Is there any possibility to still use felix-fileinstall to receive notifications on added/modified/deleted JSON files in a specific folder, but have JsonConfigInstaller keep its fingers off these files? Other than using some different extension like "somefile.myownjson".
>
> Regards,
> Jochen