When providing input values for the following Detect properties, you can utilize filename globbing-style wildcards.
| General | Gradle | Lerna | Maven | pnpm |
|---|---|---|---|---|
| detect.binary.scan.file.name.patterns | detect.gradle.included.configurations | detect.lerna.excluded.packages | detect.maven.included.scopes | detect.pnpm.included.packages |
| detect.excluded.directories | detect.gradle.excluded.configurations | detect.lerna.included.packages | detect.maven.excluded.scopes | detect.pnpm.excluded.packages |
| detect.gradle.included.projects | detect.maven.included.modules | |||
| detect.gradle.excluded.projects | detect.maven.excluded.modules |
| Wildcard | Effect | Example |
|---|---|---|
| Asterisk (*) | matches any sequence of zero or more characters | *.jpg matches someimage.jpg, but not somedocument.doc |
| Question mark (?) | matches any single character | *.??? matches someimage.jpg and somedocument.doc, but not somedocument.docx |
Note: Wildcard evaluation in these values is similar to Linux command line file globbing, and different from regular expression matching.Detect uses the
Apache Commons IO FilenameUtils.wildcardMatch() method to determine whether a string matches the given pattern.