[
https://issues.apache.org/jira/browse/KARAF-6893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225178#comment-17225178
]
Jean-Baptiste Onofré commented on KARAF-6893:
---------------------------------------------
No it works fine, but it's now implicit in the configuration file. You don't
have to use ${env:...}, just use directly: PID_PROPERTY. So it means that
ORG_APACHE_KARAF_SSH_SSHPORT will override the configuration in the cfg file
implicitly.
See the plugin in use:
https://github.com/apache/karaf/blob/master/config/src/main/java/org/apache/karaf/config/core/impl/KarafConfigurationPlugin.java
> Karaf 4.3.0 Use optional env variables in cfg files
> ---------------------------------------------------
>
> Key: KARAF-6893
> URL: https://issues.apache.org/jira/browse/KARAF-6893
> Project: Karaf
> Issue Type: New Feature
> Affects Versions: 4.3.0
> Reporter: Carl van Denzen
> Priority: Minor
>
> It looks like KARAF-4609 was lost between karaf version 4.2.10 and karaf
> version 4.3.0.
> KARAF-4609 is the use of optional environment variables in
> org.apache.karaf.shell.cfg.
> Example:
> sshPort = ${env:ORG_APACHE_KARAF_SSH_SSHPORT:-8101}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)