patch for issue #285

This commit is contained in:
Jeremy Long
2015-07-25 07:18:33 -04:00
parent dd3758af43
commit e323c7f810

View File

@@ -127,17 +127,18 @@ public class App {
try { try {
engine = new Engine(); engine = new Engine();
List<String> antStylePaths = new ArrayList<String>(); List<String> antStylePaths = new ArrayList<String>();
if (excludes == null || excludes.length == 0) { //removed and treating everything as an ant style path to ensure sym links are handled correctly.
for (String file : files) { // if (excludes == null || excludes.length == 0) {
if (file.contains("*") || file.contains("?")) { // for (String file : files) {
antStylePaths.add(file); // if (file.contains("*") || file.contains("?")) {
} else { // antStylePaths.add(file);
engine.scan(file); // } else {
} // engine.scan(file);
} // }
} else { // }
// } else {
antStylePaths = Arrays.asList(files); antStylePaths = Arrays.asList(files);
} // }
final Set<File> paths = new HashSet<File>(); final Set<File> paths = new HashSet<File>();
for (String file : antStylePaths) { for (String file : antStylePaths) {