public interface LanguageSourceSet extends Buildable, Named
Named.Namer
Modifier and Type | Method and Description |
---|---|
default LanguageSourceSet |
convention(Object... path)
Configures a set of source paths to use as a convention of this source set.
|
default LanguageSourceSet |
filter(Action<? super PatternFilterable> action)
Configures the filter patterns using the specified configuration action.
|
default LanguageSourceSet |
filter(groovy.lang.Closure<Void> closure)
Configures the filter patterns using the specified configuration closure.
|
default LanguageSourceSet |
from(Object... paths)
Adds a set of source paths to this source set.
|
default FileTree |
getAsFileTree()
Returns this source set as a filtered file tree.
|
default TaskDependency |
getBuildDependencies() |
default PatternFilterable |
getFilter()
Returns the filter used to select the source from the source directories.
|
default String |
getName()
Returns the name that identify this source set.
|
default FileCollection |
getSourceDirectories()
Returns the source directories that make up this set, represented as a
FileCollection . |
default String getName()
default LanguageSourceSet from(Object... paths)
Project.files(Object...)
.paths
- the files to adddefault FileCollection getSourceDirectories()
FileCollection
.
Does not filter source directories that do not exist.
The return value of this method also maintains dependency information.
The returned collection is live and reflects changes to this source directory set.
FileCollection
instance of all the source directories from this source set, never nulldefault LanguageSourceSet filter(Action<? super PatternFilterable> action)
action
- the configuration action, must not be nulldefault LanguageSourceSet filter(@DelegatesTo(value=org.gradle.api.tasks.util.PatternFilterable.class,strategy=1) groovy.lang.Closure<Void> closure)
closure
- the configuration closure, must not be nulldefault PatternFilterable getFilter()
*.cpp
.default FileTree getAsFileTree()
FileTree
instance representing all the files included in this source set, never nulldefault TaskDependency getBuildDependencies()
getBuildDependencies
in interface Buildable
default LanguageSourceSet convention(Object... path)
Project.files(Object...)
.path
- the files to use as convention