Skip to content

Commit

Permalink
Merge branch 'jetty-12-ee10-DefaultServlet-ResourceFactory' into jett…
Browse files Browse the repository at this point in the history
…y-12-ck
  • Loading branch information
kohlschuetter committed Jan 7, 2023
2 parents f4b776d + cf13e57 commit 99b7c11
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ public void init() throws ServletException
_resourceService.setWelcomeFactory(_resourceService);

_baseResource = servletContextHandler.getBaseResource();
_resourceFactory = ResourceFactory.closeable();

String rb = getInitParameter("baseResource", "resourceBase");
if (rb != null)
{
try
{
_resourceFactory = ResourceFactory.closeable();
_baseResource = _resourceFactory.newResource(rb);
}
catch (Exception e)
Expand Down

0 comments on commit 99b7c11

Please sign in to comment.