[
https://issues.apache.org/jira/browse/KARAF-4609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16419000#comment-16419000
]
Jean-Baptiste Onofré commented on KARAF-4609:
---------------------------------------------
I mean something slightly different. The purpose is really to override an
existing value. For instance, in {{etc/my.cfg}} file, I have:
{code}
my.port=7777
{code}
That's the default value. However, the idea is to be able to override such
configuration property at startup using {{-Dmy;my.port}} for instance. It's
convenient to override existing property when running in Docker.
I guess you meant that we can already use System property, but it means that
the {{cfg}} file has to be "prepared for that", like:
{code}
my.port=${MY_PORT}
{code}
Right ?
> Be able to override ConfigAdmin properties with System/JVM properties
> ---------------------------------------------------------------------
>
> Key: KARAF-4609
> URL: https://issues.apache.org/jira/browse/KARAF-4609
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-config
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 4.2.0
>
>
> It would be great to be able to override some ConfigAdmin properties using
> '-Dconfig.myproperty=' at startup.
> It's especially interesting when using Karaf in Docker.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)