Class GlobMatcher
java.lang.Object
org.jdrupes.gitversioning.core.GlobMatcher
- All Implemented Interfaces:
IncludeMatcher
Matches paths against a glob expression.
Delegates to PathMatcher with the glob: scheme.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GlobMatcher
Creates a new glob matcher.- Parameters:
pattern- the glob pattern
-
-
Method Details
-
matches
Description copied from interface:IncludeMatcherChecks whether the path matches the pattern.- Specified by:
matchesin interfaceIncludeMatcher- Parameters:
path- the file path (relative to the work tree)- Returns:
trueif the path matches
-