public class DefaultConfigurableFileTree extends CompositeFileTree implements ConfigurableFileTree
FileCollection.AntType| Constructor and Description |
|---|
DefaultConfigurableFileTree(Map<String,?> args,
FileResolver resolver,
TaskResolver taskResolver) |
DefaultConfigurableFileTree(Object dir,
FileResolver resolver,
TaskResolver taskResolver) |
| Modifier and Type | Method and Description |
|---|---|
ConfigurableFileTree |
builtBy(Object... tasks)
Registers some tasks which build the files of this collection.
|
WorkResult |
copy(Closure closure) |
DefaultConfigurableFileTree |
exclude(Closure excludeSpec)
Adds an exclude spec.
|
DefaultConfigurableFileTree |
exclude(Iterable<String> excludes)
Adds an ANT style exclude pattern.
|
DefaultConfigurableFileTree |
exclude(Spec<FileTreeElement> excludeSpec)
Adds an exclude spec.
|
DefaultConfigurableFileTree |
exclude(String... excludes)
Adds an ANT style exclude pattern.
|
DefaultConfigurableFileTree |
from(Object dir)
Specifies base directory for this file tree using the given path.
|
TaskDependency |
getBuildDependencies()
Returns a dependency which contains the tasks which build this artifact.
|
Set<Object> |
getBuiltBy()
Returns the set of tasks which build the files of this collection.
|
File |
getDir()
Returns the base directory of this file tree.
|
String |
getDisplayName()
Returns the display name of this file collection.
|
Set<String> |
getExcludes()
Returns the set of exclude patterns.
|
Set<String> |
getIncludes()
Returns the set of include patterns.
|
org.gradle.api.tasks.util.PatternSet |
getPatterns()
Returns the patterns which select the files under the base directory.
|
DefaultConfigurableFileTree |
include(Closure includeSpec)
Adds an include spec.
|
DefaultConfigurableFileTree |
include(Iterable<String> includes)
Adds an ANT style include pattern.
|
DefaultConfigurableFileTree |
include(Spec<FileTreeElement> includeSpec)
Adds an include spec.
|
DefaultConfigurableFileTree |
include(String... includes)
Adds an ANT style include pattern.
|
void |
resolve(FileCollectionResolveContext context)
Adds the contents of this container to the given context.
|
ConfigurableFileTree |
setBuiltBy(Iterable<?> tasks)
Sets the tasks which build the files of this collection.
|
DefaultConfigurableFileTree |
setDir(Object dir)
Specifies base directory for this file tree using the given path.
|
DefaultConfigurableFileTree |
setExcludes(Iterable<String> excludes)
Set the allowable exclude patterns.
|
DefaultConfigurableFileTree |
setIncludes(Iterable<String> includes)
Set the allowable include patterns.
|
getAsFileTree, getSourceCollections, matching, matching, plus, visit, visitaddAsResourceCollection, addDependencies, contains, filter, getAsFileTrees, getFiles, isEmptyadd, addAsFileSet, addAsMatchingTask, addToAntBuilder, addToAntBuilder, asType, filter, getAsPath, getCapDisplayName, getSingleFile, iterator, minus, plus, stopExecutionIfEmpty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsFileTree, matching, matching, plus, visit, visitadd, addToAntBuilder, addToAntBuilder, asType, contains, filter, filter, getAsPath, getFiles, getSingleFile, isEmpty, minus, plus, stopExecutionIfEmptypublic DefaultConfigurableFileTree(Object dir, FileResolver resolver, TaskResolver taskResolver)
public DefaultConfigurableFileTree(Map<String,?> args, FileResolver resolver, TaskResolver taskResolver)
public org.gradle.api.tasks.util.PatternSet getPatterns()
DirectoryTreegetPatterns in interface DirectoryTreepublic DefaultConfigurableFileTree setDir(Object dir)
ConfigurableFileTreeProject.file(Object).setDir in interface ConfigurableFileTreedir - The base directory.public File getDir()
ConfigurableFileTreegetDir in interface ConfigurableFileTreegetDir in interface DirectoryTreepublic DefaultConfigurableFileTree from(Object dir)
ConfigurableFileTreeProject.file(Object).from in interface ConfigurableFileTreedir - The base directory.public String getDisplayName()
AbstractFileCollectiongetDisplayName in interface FileCollectionContainergetDisplayName in interface MinimalFileCollectiongetDisplayName in class AbstractFileCollectionpublic WorkResult copy(Closure closure)
public Set<String> getIncludes()
PatternFilterablegetIncludes in interface PatternFilterablepublic DefaultConfigurableFileTree setIncludes(Iterable<String> includes)
PatternFilterablePatternFilterable.include(Iterable) this replaces any previously
defined includes.setIncludes in interface PatternFilterableincludes - an Iterable providing new include patternsPattern Formatpublic Set<String> getExcludes()
PatternFilterablegetExcludes in interface PatternFilterablepublic DefaultConfigurableFileTree setExcludes(Iterable<String> excludes)
PatternFilterablePatternFilterable.exclude(Iterable) this replaces any previously
defined excludes.setExcludes in interface PatternFilterableexcludes - an Iterable providing new exclude patternsPattern Formatpublic DefaultConfigurableFileTree include(String... includes)
PatternFilterableinclude in interface PatternFilterableincludes - a vararg list of include patternsPattern Formatpublic DefaultConfigurableFileTree include(Iterable<String> includes)
PatternFilterableinclude in interface PatternFilterableincludes - a Iterable providing more include patternsPattern Formatpublic DefaultConfigurableFileTree include(Closure includeSpec)
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 PatternFilterableincludeSpec - the spec to addPattern Formatpublic DefaultConfigurableFileTree include(Spec<FileTreeElement> includeSpec)
PatternFilterableinclude in interface PatternFilterableincludeSpec - the spec to addPattern Formatpublic DefaultConfigurableFileTree exclude(String... excludes)
PatternFilterableexclude in interface PatternFilterableexcludes - a vararg list of exclude patternsPattern Formatpublic DefaultConfigurableFileTree exclude(Iterable<String> excludes)
PatternFilterableexclude in interface PatternFilterableexcludes - a Iterable providing new exclude patternsPattern Formatpublic DefaultConfigurableFileTree exclude(Spec<FileTreeElement> excludeSpec)
PatternFilterableexclude in interface PatternFilterableexcludeSpec - the spec to addPattern Formatpublic DefaultConfigurableFileTree exclude(Closure excludeSpec)
PatternFilterableFileTreeElement as its parameter.
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 PatternFilterableexcludeSpec - the spec to addPattern Formatpublic void resolve(FileCollectionResolveContext context)
FileCollectionContainerresolve in interface FileCollectionContainerresolve in class CompositeFileCollectionpublic ConfigurableFileTree builtBy(Object... tasks)
ConfigurableFileTreebuiltBy in interface ConfigurableFileTreetasks - The tasks. These are evaluated as for Task.dependsOn(Object...).public Set<Object> getBuiltBy()
ConfigurableFileTreegetBuiltBy in interface ConfigurableFileTreepublic ConfigurableFileTree setBuiltBy(Iterable<?> tasks)
ConfigurableFileTreesetBuiltBy in interface ConfigurableFileTreetasks - The tasks. These are evaluated as for Task.dependsOn(Object...).public TaskDependency getBuildDependencies()
BuildableBuildable implementations
must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this
buildable.getBuildDependencies in interface BuildablegetBuildDependencies in class CompositeFileCollectionCopyright © 2013. All rights reserved