karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-706) variable substitution doesn't work for system.properties
Date Mon, 04 Jul 2011 09:20:21 GMT
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

for example in system.properties we have
if jmx.url was loaded before karaf.name then the variable substitution doesn't work
we get the 
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));

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message