public class PatternSet extends Object implements org.gradle.api.tasks.AntBuilderAware, PatternFilterable
PatternFilterable
.コンストラクタと説明 |
---|
PatternSet() |
public 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
インタフェース内 PatternFilterable
public Set<Spec<FileTreeElement>> getIncludeSpecs()
public PatternSet setIncludes(Iterable<String> includes)
PatternFilterable
PatternFilterable.include(Iterable)
this replaces any previously
defined includes.setIncludes
インタフェース内 PatternFilterable
includes
- an Iterable providing new include patternsPattern Format
public PatternSet include(String... includes)
PatternFilterable
include
インタフェース内 PatternFilterable
includes
- a vararg list of include patternsPattern Format
public PatternSet include(Iterable includes)
PatternFilterable
include
インタフェース内 PatternFilterable
includes
- a Iterable providing more include patternsPattern Format
public PatternSet include(Spec<FileTreeElement> spec)
PatternFilterable
include
インタフェース内 PatternFilterable
spec
- the spec to addPattern Format
public Set<String> getExcludes()
PatternFilterable
getExcludes
インタフェース内 PatternFilterable
public Set<Spec<FileTreeElement>> getExcludeSpecs()
public PatternSet setExcludes(Iterable<String> excludes)
PatternFilterable
PatternFilterable.exclude(Iterable)
this replaces any previously
defined excludes.setExcludes
インタフェース内 PatternFilterable
excludes
- an Iterable providing new exclude patternsPattern Format
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
public PatternSet includeSpecs(Iterable<Spec<FileTreeElement>> includeSpecs)
public PatternSet include(Closure closure)
PatternFilterable
FileTreeElement
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
インタフェース内 PatternFilterable
closure
- the spec to addPattern Format
public PatternSet exclude(String... excludes)
PatternFilterable
exclude
インタフェース内 PatternFilterable
excludes
- a vararg list of exclude patternsPattern Format
public PatternSet exclude(Iterable excludes)
PatternFilterable
exclude
インタフェース内 PatternFilterable
excludes
- a Iterable providing new exclude patternsPattern Format
public PatternSet exclude(Spec<FileTreeElement> spec)
PatternFilterable
exclude
インタフェース内 PatternFilterable
spec
- the spec to addPattern Format
public PatternSet excludeSpecs(Iterable<Spec<FileTreeElement>> excludes)
public PatternSet exclude(Closure closure)
PatternFilterable
FileTreeElement
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
インタフェース内 PatternFilterable
closure
- the spec to addFileTreeElement