List<File> (@Nullable AntDomPattern pattern, Set<AntFilesProvider> processed) { final File root = getCanonicalFile(getDir().getStringValue()); if (root == null) { return Collections.emptyList(); } final ArrayList<File> files = new ArrayList<>(); final String filenames = getFilesString().getStringValue(); if (filenames != null) { final StringTokenizer tokenizer = new StringTokenizer(filenames, ", \t\n\r\f", false); while (tokenizer.hasMoreTokens()) { files.add(new File(root, tokenizer.nextToken())); } } for (AntDomNamedElement child : getFiles()) { final String fileName = child.getName().getStringValue(); if (fileName != null) { files.add(new File(root, fileName)); } } return files; }