Ensure jetty.home set as Server attribute on defaultJettyServer instance

This commit is contained in:
Jan Bartel 2013-05-28 14:58:21 +10:00
parent 7e797d8eed
commit 82b0ae2c63
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,8 @@ public class DefaultJettyAtJettyHomeHelper
Util.setProperty(properties, OSGiServerConstants.JETTY_PORT_SSL, System.getProperty(OSGiServerConstants.JETTY_PORT_SSL));
Server server = ServerInstanceWrapper.configure(null, configURLs, properties);
//ensure jetty.home is set
server.setAttribute(OSGiServerConstants.JETTY_HOME, properties.get(OSGiServerConstants.JETTY_HOME));
//Register the default Server instance as an OSGi service.
//The JettyServerServiceTracker will notice it and set it up to deploy bundles as wars etc