karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <ben...@basistech.com>
Subject Re: system properties file (multiple ones)
Date Fri, 21 Aug 2015 12:40:12 GMT
I am doing this today.

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.

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, but
for system properties the override.properties files does the job.

On Fri, Aug 21, 2015 at 8:37 AM, maggu2810 <maggu2810@gmail.com> wrote:
> Hi,
>> So, basically, you can have an empty system.properties, and populate all
>> with -D.
> I do not want to change the system.properties that comes with Karaf
> (also not empty it). ;-)
> I would like to add a separate file with system properties.
> Another approach would be if the assembly builder will merge my file
> with the existing system.properties.
> "-D" would imply I add a custom startup script and do not use the
> karaf Script that already shipped with the distribution. But if this
> is the preferred way, I will do so.
>> You also use override in system.properties and etc/override.properties.
> I do not understand.
> The method "setSystemProperty" in
> "system/internal/SystemServiceImpl.java" read the system.properties
> file.
> This method does not use a file called "override.properties".
> Thge assembly/Builder does something with a file "override.properties"
> but do not know, how this works ATM.
> The issue 2752 (https://issues.apache.org/jira/browse/KARAF-2752),
> states "file in etc/overrides.properties which will contain a list of
> bundle urls to consider as replacements when installing features" and
> the file https://github.com/apache/karaf/blob/master/features/core/src/test/resources/org/apache/karaf/features/internal/service/overrides.properties
> shows also nothing that helped me.
> --
> View this message in context: http://karaf.922171.n3.nabble.com/system-properties-file-multiple-ones-tp4041994p4041996.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

View raw message