|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.AbstractTask org.gradle.api.DefaultTask org.gradle.api.internal.ConventionTask org.gradle.api.tasks.SourceTask
public class SourceTask
A SourceTask
performs some operation on source files.
Field Summary |
---|
Fields inherited from interface org.gradle.api.Task |
---|
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_NAME, TASK_OVERWRITE, TASK_TYPE |
Constructor Summary | |
---|---|
SourceTask()
|
Method Summary | |
---|---|
SourceTask |
exclude(Closure excludeSpec)
Adds an exclude spec. |
SourceTask |
exclude(Iterable<String> excludes)
Adds an ANT style exclude pattern. |
SourceTask |
exclude(Spec<FileTreeElement> excludeSpec)
Adds an exclude spec. |
SourceTask |
exclude(String... excludes)
Adds an ANT style exclude pattern. |
protected FileTree |
getDefaultSource()
Returns the default source for this task, if any. |
Set<String> |
getExcludes()
Get the set of exclude patterns. |
Set<String> |
getIncludes()
Get the set of include patterns. |
FileTree |
getSource()
Returns the source for this task, after the include and exclude patterns have been applied. |
SourceTask |
include(Closure includeSpec)
Adds an include spec. |
SourceTask |
include(Iterable<String> includes)
Adds an ANT style include pattern. |
SourceTask |
include(Spec<FileTreeElement> includeSpec)
Adds an include spec. |
SourceTask |
include(String... includes)
Adds an ANT style include pattern. |
SourceTask |
setExcludes(Iterable<String> excludes)
Set the allowable exclude patterns. |
SourceTask |
setIncludes(Iterable<String> includes)
Set the allowable include patterns. |
void |
setSource(Object source)
Sets the source for this task. |
SourceTask |
source(Object... sources)
Adds some source to this task. |
Methods inherited from class org.gradle.api.internal.ConventionTask |
---|
conventionMapping, getConventionMapping, setConventionMapping |
Methods inherited from class org.gradle.api.internal.AbstractTask |
---|
captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, equals, execute, getActions, getAdditionalProperties, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getDynamicObjectHelper, getEnabled, getExecuter, getGroup, getInputs, getLogger, getLogging, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getTaskDependencies, getTemporaryDir, hashCode, hasProperty, injectIntoNewInstance, isEnabled, leftShift, onlyIf, onlyIf, property, setActions, setConvention, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SourceTask()
Method Detail |
---|
public FileTree getSource()
protected FileTree getDefaultSource()
public void setSource(Object source)
Project.files(Object...)
.
source
- The source.public SourceTask source(Object... sources)
Project.files(Object...)
.
sources
- The source to add
public SourceTask include(String... includes)
include
in interface PatternFilterable
includes
- a vararg list of include patterns
Pattern Format
public SourceTask include(Iterable<String> includes)
include
in interface PatternFilterable
includes
- a Iterable providing more include patterns
Pattern Format
public SourceTask include(Spec<FileTreeElement> includeSpec)
include
in interface PatternFilterable
includeSpec
- the spec to add
Pattern Format
public SourceTask include(Closure includeSpec)
FileTreeElement
as its parameter.
If includes are not provided, then all files in this container will be included. If includes are provided, then a
file must match at least one of the include patterns or specs to be included.
include
in interface PatternFilterable
includeSpec
- the spec to add
Pattern Format
public SourceTask exclude(String... excludes)
exclude
in interface PatternFilterable
excludes
- a vararg list of exclude patterns
Pattern Format
public SourceTask exclude(Iterable<String> excludes)
exclude
in interface PatternFilterable
excludes
- a Iterable providing new exclude patterns
Pattern Format
public SourceTask exclude(Spec<FileTreeElement> excludeSpec)
exclude
in interface PatternFilterable
excludeSpec
- the spec to add
Pattern Format
public SourceTask exclude(Closure excludeSpec)
FileTreeElement
as its parameter.
If excludes are not provided, then no files will be excluded. If excludes are provided, then files must not match
any exclude pattern to be processed.
exclude
in interface PatternFilterable
excludeSpec
- the spec to add
Pattern Format
public Set<String> getIncludes()
getIncludes
in interface PatternFilterable
public SourceTask setIncludes(Iterable<String> includes)
PatternFilterable.include(Iterable)
this replaces any previously
defined includes.
setIncludes
in interface PatternFilterable
includes
- an Iterable providing new include patterns
Pattern Format
public Set<String> getExcludes()
getExcludes
in interface PatternFilterable
public SourceTask setExcludes(Iterable<String> excludes)
PatternFilterable.exclude(Iterable)
this replaces any previously
defined excludes.
setExcludes
in interface PatternFilterable
excludes
- an Iterable providing new exclude patterns
Pattern Format
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |