|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.Named org.gradle.api.tasks.AntBuilderAware org.gradle.api.tasks.util.PatternFilterable org.gradle.api.file.FileCollection org.gradle.api.file.SourceDirectorySet org.gradle.api.Buildable org.gradle.api.file.FileTree
public interface SourceDirectorySet extends FileTree, Named, PatternFilterable
A SourceDirectorySet represents a set of source files composed from a set of source directories, along with associated include and exclude patterns.
TODO - configure includes/excludes for individual source dirs, and sync up with CopySpec TODO - allow add FileTreeMethod Summary | |
---|---|
PatternFilterable
|
getFilter()
Returns the filter used to select the source from the source directories. |
java.lang.String
|
getName()
A concise name for the source directory set (typically used to identify it in a collection). |
java.util.Set
|
getSrcDirTrees()
Returns the source directory trees which make up this set. |
java.util.Set
|
getSrcDirs()
Returns the source directories which make up this set. |
SourceDirectorySet
|
setSrcDirs(java.lang.Iterable srcPaths)
Sets the source directories for this set. |
SourceDirectorySet
|
source(SourceDirectorySet source)
Adds the given source to this set. |
SourceDirectorySet
|
srcDir(java.lang.Object srcPath)
Adds the given source directory to this set. |
SourceDirectorySet
|
srcDirs(java.lang.Object srcPaths)
Adds the given source directories to this set. |
Methods inherited from interface Named | |
---|---|
getName |
Methods inherited from interface PatternFilterable | |
---|---|
exclude, exclude, exclude, exclude, getExcludes, getIncludes, include, include, include, include, setExcludes, setIncludes |
Methods inherited from interface FileTree | |
---|---|
getAsFileTree, matching, matching, plus, visit, visit |
Methods inherited from interface FileCollection | |
---|---|
add, addToAntBuilder, addToAntBuilder, asType, contains, filter, filter, getAsFileTree, getAsPath, getFiles, getSingleFile, isEmpty, minus, plus, stopExecutionIfEmpty |
Methods inherited from interface AntBuilderAware | |
---|---|
addToAntBuilder |
Methods inherited from interface java.lang.Iterable | |
---|---|
java.lang.Iterable#iterator() |
Methods inherited from interface Buildable | |
---|---|
getBuildDependencies |
Method Detail |
---|
public PatternFilterable getFilter()
public java.lang.String getName()
public java.util.Set getSrcDirTrees()
public java.util.Set getSrcDirs()
public SourceDirectorySet setSrcDirs(java.lang.Iterable srcPaths)
srcPaths
- The source directories. These are evaluated as for Project.files
public SourceDirectorySet source(SourceDirectorySet source)
source
- The source to add.
public SourceDirectorySet srcDir(java.lang.Object srcPath)
srcPath
- The source directory. This is evaluated as for Project.file
public SourceDirectorySet srcDirs(java.lang.Object srcPaths)
srcPaths
- The source directories. These are evaluated as for Project.files
Groovy Documentation