use of org.codelibs.fess.tomcat.webresources.FessWebResourceRoot in project fess by codelibs.
the class FessBoot method setupWebappContext.
@Override
protected void setupWebappContext() {
super.setupWebappContext();
String contextPath = getContextPath();
if (contextPath.length() > 0 && contextPath.endsWith("/")) {
contextPath = contextPath.replaceAll("/+$", StringUtil.EMPTY);
}
final Context context = (Context) server.getHost().findChild(contextPath);
if (context != null) {
context.setResources(new FessWebResourceRoot(context));
}
}
Aggregations