diff options
| author | Robert Godfrey <rgodfrey@apache.org> | 2015-01-27 19:36:48 +0000 |
|---|---|---|
| committer | Robert Godfrey <rgodfrey@apache.org> | 2015-01-27 19:36:48 +0000 |
| commit | 971b6ce109b19231bb0514b45a343ced822dd404 (patch) | |
| tree | 106937782f120b84ed6f23df42d4c16bf950b24c /qpid/java/broker/src | |
| parent | 5853d2d3c8261f30590ee1b0406d9a2422ede00b (diff) | |
| download | qpid-python-971b6ce109b19231bb0514b45a343ced822dd404.tar.gz | |
QPID-6339 : Use variable interpolation for help url and initial virtual host config
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1655125 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker/src')
| -rw-r--r-- | qpid/java/broker/src/main/java/org/apache/qpid/server/Main.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/Main.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/Main.java index f4c6926a17..5f32dd3352 100644 --- a/qpid/java/broker/src/main/java/org/apache/qpid/server/Main.java +++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/Main.java @@ -328,14 +328,19 @@ public class Main initialPropertiesLocation = (new File(initialProperties)).toURI().toURL(); } - Properties props = new Properties(); - props.load(initialPropertiesLocation.openStream()); + Properties props = new Properties(QpidProperties.asProperties()); + if(initialPropertiesLocation != null) + { + props.load(initialPropertiesLocation.openStream()); + } + Set<String> propertyNames = new HashSet<>(props.stringPropertyNames()); propertyNames.removeAll(System.getProperties().stringPropertyNames()); - for(String propName : propertyNames) + for (String propName : propertyNames) { System.setProperty(propName, props.getProperty(propName)); } + } private void copyInitialConfigFile(final BrokerOptions options, final File destinationFile) |
