A SourceDirectorySet
represents a set of source files composed from a set of source directories, along
with associated include and exclude patterns.
Type | Name 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<DirectoryTree> |
getSrcDirTrees() Returns the source directory trees which make up this set. |
Set<File> |
getSrcDirs() Returns the source directories 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. |
Methods inherited from class | Name |
---|---|
interface FileTree |
getAsFileTree, matching, matching, plus, visit, visit |
interface Named |
getName |
interface PatternFilterable |
exclude, exclude, exclude, exclude, getExcludes, getIncludes, include, include, include, include, setExcludes, setIncludes |
Returns the filter used to select the source from the source directories. These filter patterns are applied after
the include and exclude patterns of the source directory set itself. Generally, the filter patterns are used to
select certain types of files, eg *.java
.
A concise name for the source directory set (typically used to identify it in a collection).
Returns the source directory trees which make up this set. Does not filter source directories which do not exist.
Returns the source directories which make up this set. Does not filter source directories which do not exist.
Sets the source directories for this set.
srcPaths
- The source directories. These are evaluated as per Project.filesAdds the given source to this set.
source
- The source to add.Adds the given source directory to this set.
srcPath
- The source directory. This is evaluated as per Project.fileAdds the given source directories to this set.
srcPaths
- The source directories. These are evaluated as per Project.files