org.gradle.api.internal.tasks.copy.pattern
Class NameOnlyPatternMatcher
java.lang.Object
org.gradle.api.internal.tasks.copy.pattern.NameOnlyPatternMatcher
- All Implemented Interfaces:
- Spec
class NameOnlyPatternMatcher
PatternMatcher for handling the very common '**\name' pattern
more efficiently than the DefaultPatternMatcher.
This will only match against the last part of a relative path and this only if
the RelativePath is a File.
- author:
- Steve Appling
Constructor Summary |
NameOnlyPatternMatcher(boolean partialMatchDirs, boolean caseSensitive, java.lang.String pattern)
CTOR
Note that pattern must be a single pattern step - i.e. can't contain
embedded '\' or '/'.
|
Methods inherited from class java.lang.Object
|
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
NameOnlyPatternMatcher
public NameOnlyPatternMatcher(boolean partialMatchDirs, boolean caseSensitive, java.lang.String pattern)
- CTOR
Note that pattern must be a single pattern step - i.e. can't contain
embedded '\' or '/'. This is intended to match a file name. It
can contain '*', '?' as wildcards.
- param:
- partialMatchDirs
- param:
- caseSensitive
- param:
- pattern
isSatisfiedBy
public boolean isSatisfiedBy(RelativePath path)
-
Groovy Documentation