}
private boolean shouldExclude(File file) {
AntPathMatcher pathMatcher = new AntPathMatcher();
for (String exclusionPattern : processingInfo.getExclusionPatterns()) {
if (pathMatcher.match(exclusionPattern, file.getAbsolutePath().replace('\\', '/'))) {
return true;
}
}
return false;
}