karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie goodyear (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (KARAF-706) variable substitution doesn't work for system.properties
Date Fri, 20 Jan 2012 14:08:40 GMT

     [ https://issues.apache.org/jira/browse/KARAF-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jamie goodyear closed KARAF-706.
--------------------------------

    
> variable substitution doesn't work for system.properties
> --------------------------------------------------------
>
>                 Key: KARAF-706
>                 URL: https://issues.apache.org/jira/browse/KARAF-706
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 2.2.3, 3.0.0
>
>
> for example in system.properties we have
> karaf.name=root
> and
> jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-${karaf.name}
> if jmx.url was loaded before karaf.name then the variable substitution doesn't work
> we get the 
> jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-
> after variable substitution.
> The error comes from that in
> Main.loadSystemProperties() method we have
> System.setProperty(name, substVars(value, name, null, null));
> which is incorrect, we should use
> System.setProperty(name, substVars(value, name, null, props));
> instead

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message