|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gradle.api.tasks.util.PatternSet
public class PatternSet
Standalone implementation of PatternFilterable.
| Constructor Summary | |
|---|---|
PatternSet()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternSet()
| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic PatternSet copyFrom(PatternFilterable sourcePattern)
public PatternSet intersect()
public Spec<FileTreeElement> getAsSpec()
public Spec<FileTreeElement> getAsIncludeSpec()
public Spec<FileTreeElement> getAsExcludeSpec()
public Set<String> getIncludes()
PatternFilterable
getIncludes in interface PatternFilterablepublic Set<Spec<FileTreeElement>> getIncludeSpecs()
public PatternSet setIncludes(Iterable<String> includes)
PatternFilterablePatternFilterable.include(Iterable) this replaces any previously
defined includes.
setIncludes in interface PatternFilterableincludes - an Iterable providing new include patterns
Pattern Formatpublic PatternSet include(String... includes)
PatternFilterable
include in interface PatternFilterableincludes - a vararg list of include patterns
Pattern Formatpublic PatternSet include(Iterable includes)
PatternFilterable
include in interface PatternFilterableincludes - a Iterable providing more include patterns
Pattern Formatpublic PatternSet include(Spec<FileTreeElement> spec)
PatternFilterable
include in interface PatternFilterablespec - the spec to add
Pattern Formatpublic Set<String> getExcludes()
PatternFilterable
getExcludes in interface PatternFilterablepublic Set<Spec<FileTreeElement>> getExcludeSpecs()
public PatternSet setExcludes(Iterable<String> excludes)
PatternFilterablePatternFilterable.exclude(Iterable) this replaces any previously
defined excludes.
setExcludes in interface PatternFilterableexcludes - an Iterable providing new exclude patterns
Pattern Formatpublic boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
public PatternSet includeSpecs(Iterable<Spec<FileTreeElement>> includeSpecs)
public PatternSet include(Closure closure)
PatternFilterableFileTreeElement as its parameter.
If includes are not provided, then all files in this container will be included. If includes are provided, then a
file must match at least one of the include patterns or specs to be included.
include in interface PatternFilterableclosure - the spec to add
Pattern Formatpublic PatternSet exclude(String... excludes)
PatternFilterable
exclude in interface PatternFilterableexcludes - a vararg list of exclude patterns
Pattern Formatpublic PatternSet exclude(Iterable excludes)
PatternFilterable
exclude in interface PatternFilterableexcludes - a Iterable providing new exclude patterns
Pattern Formatpublic PatternSet exclude(Spec<FileTreeElement> spec)
PatternFilterable
exclude in interface PatternFilterablespec - the spec to add
Pattern Formatpublic PatternSet excludeSpecs(Iterable<Spec<FileTreeElement>> excludes)
public PatternSet exclude(Closure closure)
PatternFilterableFileTreeElement as its parameter. The closure should return true or false. Example:
copySpec {
from 'source'
into 'destination'
//an example of excluding files from certain configuration:
exclude { it.file in configurations.someConf.files }
}
If excludes are not provided, then no files will be excluded. If excludes are provided, then files must not match
any exclude pattern to be processed.
exclude in interface PatternFilterableclosure - the spec to add
FileTreeElement
public Object addToAntBuilder(Object node,
String childNodeName)
addToAntBuilder in interface org.gradle.api.tasks.AntBuilderAware
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||