Skip to content

Commit

Permalink
modified parseExclusions to remove false warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudenw committed May 16, 2024
1 parent 7343620 commit c92cb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apache-rat-core/src/main/java/org/apache/rat/Report.java
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ static FilenameFilter parseExclusions(final Log log, final List<String> excludes
try {
orFilter.addFileFilter(new RegexFileFilter(exclusion));
} catch (PatternSyntaxException e) {
log.info("Will skip given exclusion '" + exclude + "' due to " + e.getMessage());
// report nothing, an acceptable outcome.
}
orFilter.addFileFilter(new NameFileFilter(exclusion));
if (exclude.contains("?") || exclude.contains("*")) {
Expand Down

0 comments on commit c92cb15

Please sign in to comment.