Skip to content

Commit

Permalink
Merge #5347 from 4.0 into 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Nov 4, 2023
2 parents 242879a + 918a36a commit f60e79f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,11 @@ public void contextInitialized(ServletContextEvent servletContextEvent) {
}
}

if (webXmlProcessor.isDistributablePresent()) {
webConfig.setOptionEnabled(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable, true);
// Do not override if already defined
if (!webConfig.isSet(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable)) {
webConfig.setOptionEnabled(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable, webXmlProcessor.isDistributablePresent());
}
if (webConfig.isOptionEnabled(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable)) {
servletContext.setAttribute(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable.getQualifiedName(), TRUE);
}

Expand Down

0 comments on commit f60e79f

Please sign in to comment.