public interface SourceDirectorySet extends FileTree, PatternFilterable, Named
A SourceDirectorySet represents a set of source files composed from a set of source directories, along
with associated include and exclude patterns.
FileCollection.AntTypeNamed.Namer| Modifier and Type | Method and Description |
|---|---|
PatternFilterable |
getFilter()
Returns the filter used to select the source from the source directories.
|
String |
getName()
A concise name for the source directory set (typically used to identify it in a collection).
|
Set<File> |
getSrcDirs()
Returns the source directories which make up this set.
|
Set<DirectoryTree> |
getSrcDirTrees()
Returns the source directory trees which make up this set.
|
SourceDirectorySet |
setSrcDirs(Iterable<?> srcPaths)
Sets the source directories for this set.
|
SourceDirectorySet |
source(SourceDirectorySet source)
Adds the given source to this set.
|
SourceDirectorySet |
srcDir(Object srcPath)
Adds the given source directory to this set.
|
SourceDirectorySet |
srcDirs(Object... srcPaths)
Adds the given source directories to this set.
|
getAsFileTree, getFiles, matching, matching, plus, visit, visitadd, addToAntBuilder, addToAntBuilder, asType, contains, filter, filter, getAsPath, getSingleFile, isEmpty, minus, plus, stopExecutionIfEmptygetBuildDependenciesexclude, exclude, exclude, exclude, getExcludes, getIncludes, include, include, include, include, setExcludes, setIncludesString getName()
SourceDirectorySet srcDir(Object srcPath)
srcPath - The source directory. This is evaluated as per Project.file(Object)SourceDirectorySet srcDirs(Object... srcPaths)
srcPaths - The source directories. These are evaluated as per Project.files(Object...)Set<File> getSrcDirs()
SourceDirectorySet setSrcDirs(Iterable<?> srcPaths)
srcPaths - The source directories. These are evaluated as per Project.files(Object...)SourceDirectorySet source(SourceDirectorySet source)
source - The source to add.Set<DirectoryTree> getSrcDirTrees()
PatternFilterable getFilter()
*.java.