Issue #4820 jetty-deployer.xml should be jetty-deploy.xml for osgi (#4821)

Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
Jan Bartel 2020-04-28 11:38:38 +02:00 committed by GitHub
parent 8fcbf6d590
commit e2af6419ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -107,7 +107,7 @@ Where `/opt/custom/jetty` contains:
etc/jetty.xml
etc/jetty-selector.xml
etc/jetty-deployer.xml
etc/jetty-deploy.xml
etc/jetty-special.xml
----
@ -130,7 +130,7 @@ Here's a partial listing of that jar that shows you the names of the xml files c
----
META-INF/MANIFEST.MF
jettyhome/etc/jetty.xml
jettyhome/etc/jetty-deployer.xml
jettyhome/etc/jetty-deploy.xml
jettyhome/etc/jetty-http.xml
----
@ -140,7 +140,7 @@ If not specified, they default to:
+
[source, plain, subs="{sub-order}"]
----
etc/jetty.xml,etc/jetty-http.xml,etc/jetty-deployer.xml
etc/jetty.xml,etc/jetty-http.xml,etc/jetty-deploy.xml
----
+
@ -150,7 +150,7 @@ You can use this ability to mix and match jetty configuration files to add funct
Here's an example of adding a HTTPS connector, using the relevant files from the jetty-distribution:
+
....
etc/jetty.xml, etc/jetty-http.xml, /opt/jetty/etc/jetty-ssl.xml, /opt/jetty/etc/jetty-https.xml, etc/jetty-deployer.xml
etc/jetty.xml, etc/jetty-http.xml, /opt/jetty/etc/jetty-ssl.xml, /opt/jetty/etc/jetty-https.xml, etc/jetty-deploy.xml
....
+
@ -203,7 +203,7 @@ public class Activator implements BundleActivator
serverProps.put("managedServerName", serverName);
serverProps.put("jetty.http.port", "9999");
//let Jetty apply some configuration files to the Server instance
serverProps.put("jetty.etc.config.urls", "file:/opt/jetty/etc/jetty.xml,file:/opt/jetty/etc/jetty-selector.xml,file:/opt/jetty/etc/jetty-deployer.xml");
serverProps.put("jetty.etc.config.urls", "file:/opt/jetty/etc/jetty.xml,file:/opt/jetty/etc/jetty-selector.xml,file:/opt/jetty/etc/jetty-deploy.xml");
//register as an OSGi Service for Jetty to find
context.registerService(Server.class.getName(), server, serverProps);

View File

@ -62,7 +62,7 @@ public class DefaultJettyAtJettyHomeHelper
/**
* Set of config files to apply to a jetty Server instance if none are supplied by SYS_PROP_JETTY_ETC_FILES
*/
public static final String DEFAULT_JETTY_ETC_FILES = "etc/jetty.xml,etc/jetty-http.xml,etc/jetty-deployer.xml";
public static final String DEFAULT_JETTY_ETC_FILES = "etc/jetty.xml,etc/jetty-http.xml,etc/jetty-deploy.xml";
/**
* Default location within bundle of a jetty home dir.

View File

@ -79,7 +79,7 @@ public class TestOSGiUtil
}
xmlConfigs.append(new File(etc, jettySelectorFileName).toURI());
xmlConfigs.append(";");
xmlConfigs.append(new File(etc, "jetty-deployer.xml").toURI());
xmlConfigs.append(new File(etc, "jetty-deploy.xml").toURI());
xmlConfigs.append(";");
xmlConfigs.append(new File(etc, "jetty-testrealm.xml").toURI());