diff options
author | Thomas Watson | 2012-11-09 20:24:53 +0000 |
---|---|---|
committer | Thomas Watson | 2012-11-09 20:24:53 +0000 |
commit | f2af8d39c36d377c1774d648c21a00f7c2fdb49c (patch) | |
tree | efdcaeb52593d579af09dfa02a89ca5fc1f0a149 | |
parent | c57232c0d071ba6cc0d7636782ada02c6fcc8b02 (diff) | |
download | rt.equinox.bundles-f2af8d39c36d377c1774d648c21a00f7c2fdb49c.tar.gz rt.equinox.bundles-f2af8d39c36d377c1774d648c21a00f7c2fdb49c.tar.xz rt.equinox.bundles-f2af8d39c36d377c1774d648c21a00f7c2fdb49c.zip |
Bug 393218 - XML schema files with .xsd extension are not transformed in Eclipse help server (Jetty)v20121109-202453I20121127-0800I20121120-0800I20121113-0800
-rwxr-xr-x | bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF | 2 | ||||
-rwxr-xr-x | bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF index 5804fa4fa..deb06c33e 100755 --- a/bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.equinox.http.jetty8/META-INF/MANIFEST.MF @@ -4,7 +4,7 @@ Bundle-Name: %bundleName Bundle-Vendor: %providerName Bundle-Localization: plugin Bundle-SymbolicName: org.eclipse.equinox.http.jetty -Bundle-Version: 3.0.0.qualifier +Bundle-Version: 3.0.100.qualifier Bundle-Activator: org.eclipse.equinox.http.jetty.internal.Activator Import-Package: javax.servlet;version="[2.6.0,4.0.0)", javax.servlet.http;version="[2.6.0,4.0.0)", diff --git a/bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java b/bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java index 9f409c834..c9224bde8 100755 --- a/bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java +++ b/bundles/org.eclipse.equinox.http.jetty8/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java @@ -299,6 +299,8 @@ public class HttpServerManager implements ManagedServiceFactory { private ServletContextHandler createHttpContext(@SuppressWarnings("rawtypes") Dictionary dictionary) { ServletContextHandler httpContext = new ServletContextHandler(); + // hack in the mime type for xsd until jetty fixes it (bug 393218) + httpContext.getMimeTypes().addMimeMapping("xsd", "application/xml"); //$NON-NLS-1$ //$NON-NLS-2$ httpContext.setAttribute(INTERNAL_CONTEXT_CLASSLOADER, Thread.currentThread().getContextClassLoader()); httpContext.setClassLoader(this.getClass().getClassLoader()); |