Skip to content

Commit

Permalink
applied PR #362 to gretty-runner-jetty94
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Hihlovskiy committed Jun 21, 2017
1 parent edb493b commit f183ee6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ class JettyConfigurerImpl implements JettyConfigurer {
context.setWebInfLib(webappClassPath.findAll { it.endsWith('.jar') && !isServletApi(it) }.collect { new File(it) })
context.setExtraClasspath(webappClassPath.collect { it.endsWith('.jar') ? it : (it.endsWith('/') ? it : it + '/') }.findAll { !isServletApi(it) }.join(';'))
context.setInitParameter('org.eclipse.jetty.servlet.Default.useFileMappedBuffer', serverParams.productMode ? 'true' : 'false')
context.setAttribute('org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern',
'.*/[^/]*servlet-api-[^/]*\\.jar$|.*/javax.servlet.jsp.jstl-.*\\.jar$|.*/[^/]*taglibs.*\\.jar$');
FilteringClassLoader classLoader = new FilteringClassLoader(context)
classLoader.addServerClass('ch.qos.logback.')
classLoader.addServerClass('org.slf4j.')
Expand Down

0 comments on commit f183ee6

Please sign in to comment.