}
if (cl.hasOption(EXCLUDE_CLI)) {
String[] excludes = cl.getOptionValues(EXCLUDE_CLI);
if (excludes != null) {
final FilenameFilter filter = new NotFileFilter(new WildcardFileFilter(excludes));
report.setInputFileFilter(filter);
}
}
else if (cl.hasOption(EXCLUDE_FILE_CLI)) {
String excludeFileName = cl.getOptionValue(EXCLUDE_FILE_CLI);
if (excludeFileName != null) {
List excludes = FileUtils.readLines(new File(excludeFileName));
final OrFileFilter orFilter = new OrFileFilter();
for (int i=0; i< excludes.size(); i++) {
orFilter.addFileFilter(new RegexFileFilter((String)excludes.get(i)));
}
final FilenameFilter filter = new NotFileFilter(orFilter);
report.setInputFileFilter(filter);
}
}
if (cl.hasOption('x')) {
report.report(System.out, configuration);