Groovy Documentation

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 '/'.

 
Method Summary
boolean isSatisfiedBy(RelativePath path)

 
Methods inherited from class java.lang.Object
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll
 

Constructor Detail

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


 
Method Detail

isSatisfiedBy

public boolean isSatisfiedBy(RelativePath path)


 

Groovy Documentation