// We might get bad pattern overlapping (**/* + **/*.html would return everything,
// when maven would only package html files) .
// So we arbitrary (kinda) keep the packaging patterns only. But this can lead to other funny discrepancies
// things like **/pages/** + **/*.html should return only html files from the pages directory, but here, will return
// every html files.
SourceLocation sourceLocation = filter.getSourceLocation();
if (sourceLocation != null) {
mavenMarkerManager.addMarker(pomFile,
MavenWtpConstants.WTP_MARKER_CONFIGURATION_ERROR_ID,
NLS.bind(Messages.markers_inclusion_patterns_problem, filter.getSourceIncludeParameterName()),
sourceLocation.getLineNumber(),
IMarker.SEVERITY_WARNING);
}
warSourceIncludes = null;
}
String componentInclusions = joinAsString(warSourceIncludes, packagingIncludes);