essobedo commented on a change in pull request #7245:
URL: https://github.com/apache/camel/pull/7245#discussion_r831987457
##########
File path:
catalog/camel-report-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java
##########
@@ -1039,6 +960,19 @@ private boolean matchRouteFile(File file) {
return true;
}
+ private boolean fileListMatchesPattern(String fileList, File file) {
+ for (String exclude : fileList.split(",")) {
+ exclude = exclude.trim();
+ // try both with and without directory in the name
+ String fqn = stripRootPath(asRelativeFile(file.getAbsolutePath()));
+ boolean match = PatternHelper.matchPattern(fqn, exclude) ||
PatternHelper.matchPattern(file.getName(), exclude);
+ if (match) {
+ return true;
+ }
Review comment:
```suggestion
return PatternHelper.matchPattern(fqn, exclude) ||
PatternHelper.matchPattern(file.getName(), exclude);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]