diff options
author | Greg Wilkins | 2014-10-15 07:28:46 +0000 |
---|---|---|
committer | Greg Wilkins | 2014-10-15 07:28:46 +0000 |
commit | ea64d322149ce630d1578412988f86531768d6d8 (patch) | |
tree | cbdfbb8c742336c1b839cf79afb7169a3f454828 | |
parent | d82809d2f14d35afe1319e942283badccffd748e (diff) | |
download | org.eclipse.jetty.project-ea64d322149ce630d1578412988f86531768d6d8.tar.gz org.eclipse.jetty.project-ea64d322149ce630d1578412988f86531768d6d8.tar.xz org.eclipse.jetty.project-ea64d322149ce630d1578412988f86531768d6d8.zip |
447216 putAll Properties in XmlConfiguration
-rw-r--r-- | jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java b/jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java index 26e0ebec56..3834757a04 100644 --- a/jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java +++ b/jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java @@ -1199,14 +1199,9 @@ public class XmlConfiguration // If no start.config properties, use clean slate if (properties == null) { - properties = new Properties(); // Add System Properties - Enumeration<?> ensysprop = System.getProperties().propertyNames(); - while (ensysprop.hasMoreElements()) - { - String name = (String)ensysprop.nextElement(); - properties.put(name,System.getProperty(name)); - } + properties = new Properties(); + properties.putAll(System.getProperties()); } // For all arguments, load properties |