Groovy Documentation

org.gradle.api.tasks
[Java] Class AbstractCopyTask

java.lang.Object
  org.gradle.api.internal.ConventionTask
      org.gradle.api.tasks.AbstractCopyTask
All Implemented Interfaces:
CopySpec, CopySpecSource

public abstract class AbstractCopyTask
extends ConventionTask

AbstractCopyTask is the base class for all copy tasks.


Method Summary
protected void configureRootSpec()

protected void copy()

AbstractCopyTask eachFile(Action action)

{@inheritDoc}

AbstractCopyTask eachFile(Closure closure)

{@inheritDoc}

AbstractCopyTask exclude(String... excludes)

{@inheritDoc}

AbstractCopyTask exclude(Iterable excludes)

{@inheritDoc}

AbstractCopyTask exclude(Spec excludeSpec)

{@inheritDoc}

AbstractCopyTask exclude(Closure excludeSpec)

{@inheritDoc}

AbstractCopyTask expand(Map properties)

{@inheritDoc}

AbstractCopyTask filter(Map properties, Class filterType)

{@inheritDoc}

AbstractCopyTask filter(Class filterType)

{@inheritDoc}

AbstractCopyTask filter(Closure closure)

{@inheritDoc}

AbstractCopyTask from(Object... sourcePaths)

{@inheritDoc}

AbstractCopyTask from(Object sourcePath, Closure c)

{@inheritDoc}

protected CopyActionImpl getCopyAction()

FileCollection getDefaultSource()

Returns the default source for this task.

Integer getDirMode()

{@inheritDoc}

Set getExcludes()

{@inheritDoc}

Integer getFileMode()

{@inheritDoc}

boolean getIncludeEmptyDirs()

{@inheritDoc}

Set getIncludes()

{@inheritDoc}

protected CopySpec getMainSpec()

ReadableCopySpec getRootSpec()

FileCollection getSource()

Returns the source files for this task.

AbstractCopyTask include(String... includes)

{@inheritDoc}

AbstractCopyTask include(Iterable includes)

{@inheritDoc}

AbstractCopyTask include(Spec includeSpec)

{@inheritDoc}

AbstractCopyTask include(Closure includeSpec)

{@inheritDoc}

AbstractCopyTask into(Object destDir)

{@inheritDoc}

AbstractCopyTask into(Object destPath, Closure configureClosure)

{@inheritDoc}

boolean isCaseSensitive()

{@inheritDoc}

AbstractCopyTask rename(Closure closure)

{@inheritDoc}

AbstractCopyTask rename(String sourceRegEx, String replaceWith)

{@inheritDoc}

AbstractCopyTask rename(Pattern sourceRegEx, String replaceWith)

{@inheritDoc}

void setCaseSensitive(boolean caseSensitive)

{@inheritDoc}

AbstractCopyTask setDirMode(Integer mode)

{@inheritDoc}

AbstractCopyTask setExcludes(Iterable excludes)

{@inheritDoc}

AbstractCopyTask setFileMode(Integer mode)

{@inheritDoc}

void setIncludeEmptyDirs(boolean includeEmptyDirs)

{@inheritDoc}

AbstractCopyTask setIncludes(Iterable includes)

{@inheritDoc}

CopySpec with(CopySpec... sourceSpecs)

{@inheritDoc}

 

Method Detail

configureRootSpec

protected void configureRootSpec()


copy

@TaskAction
protected void copy()


eachFile

public AbstractCopyTask eachFile(Action action)
{@inheritDoc}


eachFile

public AbstractCopyTask eachFile(Closure closure)
{@inheritDoc}


exclude

public AbstractCopyTask exclude(String... excludes)
{@inheritDoc}


exclude

public AbstractCopyTask exclude(Iterable excludes)
{@inheritDoc}


exclude

public AbstractCopyTask exclude(Spec excludeSpec)
{@inheritDoc}


exclude

public AbstractCopyTask exclude(Closure excludeSpec)
{@inheritDoc}


expand

public AbstractCopyTask expand(Map properties)
{@inheritDoc}


filter

public AbstractCopyTask filter(Map properties, Class filterType)
{@inheritDoc}


filter

public AbstractCopyTask filter(Class filterType)
{@inheritDoc}


filter

public AbstractCopyTask filter(Closure closure)
{@inheritDoc}


from

public AbstractCopyTask from(Object... sourcePaths)
{@inheritDoc}


from

public AbstractCopyTask from(Object sourcePath, Closure c)
{@inheritDoc}


getCopyAction

protected CopyActionImpl getCopyAction()


getDefaultSource

@Deprecated
public FileCollection getDefaultSource()
Returns the default source for this task.
deprecated:
Use getSource() instead.


getDirMode

public Integer getDirMode()
{@inheritDoc}


getExcludes

public Set getExcludes()
{@inheritDoc}


getFileMode

public Integer getFileMode()
{@inheritDoc}


getIncludeEmptyDirs

public boolean getIncludeEmptyDirs()
{@inheritDoc}


getIncludes

public Set getIncludes()
{@inheritDoc}


getMainSpec

protected CopySpec getMainSpec()


getRootSpec

public ReadableCopySpec getRootSpec()


getSource

@InputFiles
@SkipWhenEmpty
@Optional
public FileCollection getSource()
Returns the source files for this task.
Returns:
The source files. Never returns null.


include

public AbstractCopyTask include(String... includes)
{@inheritDoc}


include

public AbstractCopyTask include(Iterable includes)
{@inheritDoc}


include

public AbstractCopyTask include(Spec includeSpec)
{@inheritDoc}


include

public AbstractCopyTask include(Closure includeSpec)
{@inheritDoc}


into

public AbstractCopyTask into(Object destDir)
{@inheritDoc}


into

public AbstractCopyTask into(Object destPath, Closure configureClosure)
{@inheritDoc}


isCaseSensitive

public boolean isCaseSensitive()
{@inheritDoc}


rename

public AbstractCopyTask rename(Closure closure)
{@inheritDoc}


rename

public AbstractCopyTask rename(String sourceRegEx, String replaceWith)
{@inheritDoc}


rename

public AbstractCopyTask rename(Pattern sourceRegEx, String replaceWith)
{@inheritDoc}


setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)
{@inheritDoc}


setDirMode

public AbstractCopyTask setDirMode(Integer mode)
{@inheritDoc}


setExcludes

public AbstractCopyTask setExcludes(Iterable excludes)
{@inheritDoc}


setFileMode

public AbstractCopyTask setFileMode(Integer mode)
{@inheritDoc}


setIncludeEmptyDirs

public void setIncludeEmptyDirs(boolean includeEmptyDirs)
{@inheritDoc}


setIncludes

public AbstractCopyTask setIncludes(Iterable includes)
{@inheritDoc}


with

public CopySpec with(CopySpec... sourceSpecs)
{@inheritDoc}


 

Gradle API 1.0