while (filterEnum.hasMoreElements()) {
FilterElement filterElement = (FilterElement)filterEnum.nextElement();
try {
pathPattern = compiler.compile(filterElement.getPathPattern());
filenamePattern = compiler.compile(filterElement.getFilenamePattern());
} catch (MalformedPatternException e) {
System.out.println("Fehler im Pattern\n" + e);
}
if (matcher.matches(file.getPath(),pathPattern) && matcher.matches(file.getFilename(),filenamePattern))
file.setInclude(filterElement.isInclude());