return;
}
if (webFragment.getJspConfig().size() > 1) {
logger.warn(WebDeploymentMessageUtils.createMultipleConfigurationWarningMessage("jsp-config", mergeContext.getCurrentJarUrl()));
}
JspConfig srcJspConfig = webFragment.getJspConfig().get(0);
if (webApp.getJspConfig().isEmpty()) {
webApp.getJspConfig().add( new JspConfig());
}
JspConfig targetJspConfig = webApp.getJspConfig().get(0);
//Merge Tag lib configurations
for (Taglib taglib : srcJspConfig.getTaglib()) {
if (MergeHelper.mergeRequired(createTaglibKey(taglib), "jsp-config/tag-lib", "taglib-uri", taglib.getTaglibUri(), "taglib-location", taglib.getTaglibLocation()
, mergeContext)) {
targetJspConfig.getTaglib().add(taglib);
}
}
//Merge jsp-property-group configurations, seem that no merge actions are required, just add them to the web.xml file
for (JspPropertyGroup srcJspPropertyGroup : srcJspConfig.getJspPropertyGroup()) {
targetJspConfig.getJspPropertyGroup().add(srcJspPropertyGroup);
}
}