|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.gradle.api.DefaultTask
kotka.gradle.utils.tasks.SourceDirectoryTask
@Filterable(fieldName="filter") class SourceDirectoryTask extends DefaultTask
A task based on source directories. As such it very similar to
gradle's SourceTask. However, you still get access to
the underlying directories, while the SourceTask only
gives you the source files.
The task is Filterable like SourceTask.
Please see the documentation there for method documentation. Note:
Filtering works on files, not the directories.
| Property Summary | |
|---|---|
java.lang.Object |
srcDirs
|
| Method Summary | |
|---|---|
java.lang.Object
|
from(SourceDirectorySet sourceSet)
Add a source set to the tasks source. |
FileTree
|
getSource()
Get the tree of source files. |
FileCollection
|
getSrcDirs()
Get the underlying source directories as
|
java.lang.Object
|
setSrcDirs(java.lang.Object dirs)
Set the source directories. |
java.lang.Object
|
srcDir(java.lang.Object dir)
Add a source directory. |
java.lang.Object
|
srcDirs(java.lang.Object... dirs)
Add source directories. |
| Property Detail |
|---|
java.lang.Object srcDirs
| Method Detail |
|---|
java.lang.Object from(SourceDirectorySet sourceSet)
Project.files().
sourceSet - The source set to add
@InputFiles @SkipWhenEmpty FileTree getSource()
FileCollection getSrcDirs()
FileCollection.
FileCollection
java.lang.Object setSrcDirs(java.lang.Object dirs)
Project.files().
dirs - A collection with source directories
java.lang.Object srcDir(java.lang.Object dir)
Project.files().
dirs - The directory to add
java.lang.Object srcDirs(java.lang.Object... dirs)
Project.files().
dirs - One or more directories to add
Groovy Documentation