Package org.apache.rat.mp.util.ignore
Class GitIgnoreMatcher
java.lang.Object
org.apache.rat.mp.util.ignore.GitIgnoreMatcher
- All Implemented Interfaces:
IgnoreMatcher
-
Constructor Summary
ConstructorDescriptionGitIgnoreMatcher(org.apache.maven.plugin.logging.Log log, File projectBaseDir)
-
Method Summary
-
Constructor Details
-
GitIgnoreMatcher
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:IgnoreMatcher
Returnstrue
if this IgnoreMatcher contains no rules.- Specified by:
isEmpty
in interfaceIgnoreMatcher
- Returns:
true
if this IgnoreMatcher contains no rules
-
isIgnoredFile
Description copied from interface:IgnoreMatcher
Checks if the file matches the stored expressions.- Specified by:
isIgnoredFile
in interfaceIgnoreMatcher
- Parameters:
filename
- The filename to be checked- Returns:
- empty: not matched, True: must be ignored, False: it must be UNignored
-
toString
-