jetty-9 more xml configuration

This commit is contained in:
Greg Wilkins 2012-09-13 15:30:07 +10:00
parent 9940796a32
commit e596d6eef6
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ public class TestXml
System.setProperty("jetty.home","../jetty-distribution/target/distribution");
XmlConfiguration.main(new String[]
{
"../jetty-jmx/src/main/config/etc/jetty-jmx.xml",
// "../jetty-jmx/src/main/config/etc/jetty-jmx.xml",
"../jetty-server/src/main/config/etc/jetty.xml",
"../jetty-spdy/spdy-jetty-http-webapp/src/main/config/etc/jetty-spdy.xml"
}

View File

@ -1,2 +0,0 @@
OPTIONS=plus
etc/jetty-plus.xml

View File

@ -0,0 +1,2 @@
OPTIONS=plus
etc/jetty-plus.xml

View File

@ -785,7 +785,7 @@ public class XmlConfiguration
{
String id = node.getAttribute("id");
obj = _idMap.get(id);
if (obj == null)
if (obj == null && node.size()>0)
throw new IllegalStateException("No object for id=" + id);
configure(obj,node,0);
return obj;