Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jetty-xml/src/main/java/org/eclipse/jetty/xml/XmlConfiguration.java9
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

Back to the top