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
<[email protected]> 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

Reply via email to