Removed file filter for files that are explicitly specified on the CPD command line using the '--files' command line option.

This commit is contained in:
Jan van Nunen
2015-12-09 15:00:00 +01:00
parent 6a3e7ce6ec
commit 10db98bfee

View File

@ -105,13 +105,7 @@ public class CPDCommandLineInterface {
cpd.addAllInDirectory(file);
}
} else {
//Add a single file if it is accepted by the file filter
File directory = file.getAbsoluteFile().getParentFile();
String filename = file.getName();
if (filter.accept(directory, filename)) {
cpd.add(file);
}
cpd.add(file);
}
}
} catch (IOException e) {