public class SourceTask extends ConventionTask
A SourceTask
performs some operation on source files.
Type | Name and description |
---|---|
SourceTask |
exclude(String... excludes) {@inheritDoc} |
SourceTask |
exclude(Iterable<String> excludes) {@inheritDoc} |
SourceTask |
exclude(Spec<FileTreeElement> excludeSpec) {@inheritDoc} |
SourceTask |
exclude(Closure excludeSpec) {@inheritDoc} |
Set<String> |
getExcludes() {@inheritDoc} |
Set<String> |
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<String> includes) {@inheritDoc} |
SourceTask |
include(Spec<FileTreeElement> includeSpec) {@inheritDoc} |
SourceTask |
include(Closure includeSpec) {@inheritDoc} |
SourceTask |
setExcludes(Iterable<String> excludes) {@inheritDoc} |
SourceTask |
setIncludes(Iterable<String> includes) {@inheritDoc} |
void |
setSource(Object source) Sets the source for this task. |
SourceTask |
source(Object... sources) Adds some source to this task. |
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist.
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Sets the source for this task. The given source object is evaluated as per Project.files.
source
- The source.Adds some source to this task. The given source objects will be evaluated as per Project.files.
sources
- The source to add