|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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_GROUP, 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()
Returns the set of exclude patterns. |
Set<String> |
getIncludes()
Returns 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 |
|---|
addValidator, captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, 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, getValidators, 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, equals, finalize, getClass, hashCode, 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 PatternFilterableincludes - a vararg list of include patterns
Pattern Formatpublic SourceTask include(Iterable<String> includes)
include in interface PatternFilterableincludes - a Iterable providing more include patterns
Pattern Formatpublic SourceTask include(Spec<FileTreeElement> includeSpec)
include in interface PatternFilterableincludeSpec - the spec to add
Pattern Formatpublic 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 PatternFilterableincludeSpec - the spec to add
Pattern Formatpublic SourceTask exclude(String... excludes)
exclude in interface PatternFilterableexcludes - a vararg list of exclude patterns
Pattern Formatpublic SourceTask exclude(Iterable<String> excludes)
exclude in interface PatternFilterableexcludes - a Iterable providing new exclude patterns
Pattern Formatpublic SourceTask exclude(Spec<FileTreeElement> excludeSpec)
exclude in interface PatternFilterableexcludeSpec - the spec to add
Pattern Formatpublic 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 PatternFilterableexcludeSpec - the spec to add
Pattern Formatpublic Set<String> getIncludes()
getIncludes in interface PatternFilterablepublic SourceTask setIncludes(Iterable<String> includes)
PatternFilterable.include(Iterable) this replaces any previously
defined includes.
setIncludes in interface PatternFilterableincludes - an Iterable providing new include patterns
Pattern Formatpublic Set<String> getExcludes()
getExcludes in interface PatternFilterablepublic SourceTask setExcludes(Iterable<String> excludes)
PatternFilterable.exclude(Iterable) this replaces any previously
defined excludes.
setExcludes in interface PatternFilterableexcludes - an Iterable providing new exclude patterns
Pattern Format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||