Class AntPatternMatcher
java.lang.Object
org.jdrupes.gitversioning.core.AntPatternMatcher
- All Implemented Interfaces:
IncludeMatcher
Matches paths against an Ant-style pattern.
Supports *, **, and ? wildcards via the
ant-style-path-matcher library.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AntPatternMatcher
Creates a new Ant pattern matcher.- Parameters:
pattern- the Ant-style 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
-