}
protected List createResources(Element resourcesDefinition) {
String dirName = resourcesDefinition.getAttribute(DIR_ATTR);
final String pattern = resourcesDefinition.getAttribute(PATTERN_ATTR);
final AntPathMatcher matcher = new AntPathMatcher();
FileFilter filter = new FileFilter() {
public boolean accept(File file) {
return matcher.match(pattern, file.getName());
}
};
List resources = new ArrayList();
for (Iterator files = new FileIterator(dirName, filter); files.hasNext();) {
File file = (File) files.next();