public final class ScmIgnoreParser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.List<java.lang.String> |
COMMENT_PREFIXES |
| Modifier | Constructor and Description |
|---|---|
private |
ScmIgnoreParser() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getExcludesFromFile(org.apache.maven.plugin.logging.Log log,
java.io.File scmIgnore)
Parses excludes from the given SCM ignore file.
|
static java.util.List<java.lang.String> |
getExclusionsFromSCM(org.apache.maven.plugin.logging.Log log,
java.io.File baseDir)
Parse ignore files from all known SCMs that have ignore files.
|
(package private) static boolean |
isComment(java.lang.String line)
Determines whether the given line is a comment or not based on scanning
for prefixes
COMMENT_PREFIXES. |
public static java.util.List<java.lang.String> getExcludesFromFile(org.apache.maven.plugin.logging.Log log,
java.io.File scmIgnore)
log - Maven log to show output during RAT runs.scmIgnore - if null or invalid an empty list of exclusions is returned.public static java.util.List<java.lang.String> getExclusionsFromSCM(org.apache.maven.plugin.logging.Log log,
java.io.File baseDir)
log - Show information via maven logger.baseDir - base directory from which to look for SCM ignores.static boolean isComment(java.lang.String line)
COMMENT_PREFIXES.line - line to verify.true if the given line is a commented out line.