|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.ConventionTask org.gradle.api.tasks.SourceTask
public class SourceTask extends ConventionTask
A SourceTask performs some operation on source files.
Field Summary | |
---|---|
protected List |
source
|
Method Summary | |
---|---|
SourceTask
|
exclude(String... excludes)
{@inheritDoc} |
SourceTask
|
exclude(Iterable excludes)
{@inheritDoc} |
SourceTask
|
exclude(Spec excludeSpec)
{@inheritDoc} |
SourceTask
|
exclude(Closure excludeSpec)
{@inheritDoc} |
protected FileTree
|
getDefaultSource()
Returns the default source for this task, if any. |
Set
|
getExcludes()
{@inheritDoc} |
Set
|
getIncludes()
{@inheritDoc} |
FileTree
|
getSource()
Returns the source for this task, after the include and exclude patterns have been applied. |
SourceTask
|
include(String... includes)
{@inheritDoc} |
SourceTask
|
include(Iterable includes)
{@inheritDoc} |
SourceTask
|
include(Spec includeSpec)
{@inheritDoc} |
SourceTask
|
include(Closure includeSpec)
{@inheritDoc} |
SourceTask
|
setExcludes(Iterable excludes)
{@inheritDoc} |
SourceTask
|
setIncludes(Iterable includes)
{@inheritDoc} |
void
|
setSource(Object source)
Sets the source for this task. |
SourceTask
|
source(Object... sources)
Adds some source to this task. |
Field Detail |
---|
protected final List source
Method Detail |
---|
public SourceTask exclude(String... excludes)
public SourceTask exclude(Iterable excludes)
public SourceTask exclude(Spec excludeSpec)
public SourceTask exclude(Closure excludeSpec)
@Deprecated protected FileTree getDefaultSource()
public Set getExcludes()
public Set getIncludes()
@InputFiles @SkipWhenEmpty public FileTree getSource()
public SourceTask include(String... includes)
public SourceTask include(Iterable includes)
public SourceTask include(Spec includeSpec)
public SourceTask include(Closure includeSpec)
public SourceTask setExcludes(Iterable excludes)
public SourceTask setIncludes(Iterable includes)
public void setSource(Object source)
source
- The source.
public SourceTask source(Object... sources)
sources
- The source to add
Gradle API 1.12