You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2015/05/27 08:50:18 UTC
[jira] [Resolved] (KARAF-3738) Karaf client should be able to read
environment variables
[ https://issues.apache.org/jira/browse/KARAF-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved KARAF-3738.
---------------------------------
Resolution: Fixed
Fix Version/s: 4.0.0.M3
3.0.4
commit fix
http://git-wip-us.apache.org/repos/asf/karaf/commit/60b284e4 for master
http://git-wip-us.apache.org/repos/asf/karaf/commit/e25a498c for karaf-3.0.x branch
> Karaf client should be able to read environment variables
> ---------------------------------------------------------
>
> Key: KARAF-3738
> URL: https://issues.apache.org/jira/browse/KARAF-3738
> Project: Karaf
> Issue Type: Improvement
> Affects Versions: 3.0.3
> Reporter: Korenev Artem
> Assignee: Freeman Fang
> Fix For: 3.0.4, 4.0.0.M3
>
>
> Now the client can only get the properties from org.apache.karaf.shell.cfg and doesn't look up in environment variables.
> So specifying in org.apache.karaf.shell.cfg file something different from raw values will cause similar exception:
> Exception in thread "main" java.lang.NumberFormatException: For input string: "${ssh.port}"
> at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Integer.parseInt(Integer.java:481)
> at java.lang.Integer.parseInt(Integer.java:527)
> at org.apache.karaf.client.ClientConfig.<init>(ClientConfig.java:46)
> at org.apache.karaf.client.Main.main(Main.java:51)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)