Skip to content

Commit

Permalink
patch for issue #285
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Jul 25, 2015
1 parent dd3758a commit e323c7f
Showing 1 changed file with 12 additions and 11 deletions.
Expand Up @@ -127,17 +127,18 @@ private void runScan(String reportDirectory, String outputFormat, String applica
try {
engine = new Engine();
List<String> antStylePaths = new ArrayList<String>();
if (excludes == null || excludes.length == 0) {
for (String file : files) {
if (file.contains("*") || file.contains("?")) {
antStylePaths.add(file);
} else {
engine.scan(file);
}
}
} else {
antStylePaths = Arrays.asList(files);
}
//removed and treating everything as an ant style path to ensure sym links are handled correctly.
// if (excludes == null || excludes.length == 0) {
// for (String file : files) {
// if (file.contains("*") || file.contains("?")) {
// antStylePaths.add(file);
// } else {
// engine.scan(file);
// }
// }
// } else {
antStylePaths = Arrays.asList(files);
// }

final Set<File> paths = new HashSet<File>();
for (String file : antStylePaths) {
Expand Down

0 comments on commit e323c7f

Please sign in to comment.