karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: system properties file (multiple ones)
Date Fri, 21 Aug 2015 13:40:35 GMT
So use the override.properties: you can provision it with the assembly 
goal as it supports resources.

It's the way we do in SMX.

Regards
JB

On 08/21/2015 02:37 PM, maggu2810 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.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message