It is read at startup. The important question is whether it ends up in the
etc directory. Have you looked at the generated assembly to see if the file
is in the right place? Perhaps it's not travelling from src/main/resources
to etc correctly.

On Fri, Aug 21, 2015 at 8:51 AM, maggu2810 <[email protected]> wrote:

> > The fact is that Karaf reads etc/override.properties and treats its
> > contents as 'overrides' over system.properties. So, my assembly has
> > one of these to set some properties.
>
> At which time the file is read?
> I added a file override.properties to my 'src/main/resources/etc/'
> directory.
> The file is placed as is in the created assembly.
>
> If I start Karaf using the normal script, the stuff in
> override.properties seems not to be read as system properties.
>
> > I could make an argument that KARAF_ETC should be a 'PATH'-like list
> > to avoid having to diddle the contents of files from stock Karaf
>
> I just do not want to change files to add something.
> With every Karaf bump I have to check all such files and merge the
> upstream changes.
>
> > , but
> > for system properties the override.properties files does the job.
>
> I think I do it wrong. Could you give me more details?
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/system-properties-file-multiple-ones-tp4041994p4041998.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

Reply via email to