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

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(groovy.lang.Closure closure)

{@inheritDoc}

AbstractCopyTask exclude(java.lang.String excludes)

{@inheritDoc}

AbstractCopyTask exclude(java.lang.Iterable excludes)

{@inheritDoc}

AbstractCopyTask exclude(Spec excludeSpec)

{@inheritDoc}

AbstractCopyTask exclude(groovy.lang.Closure excludeSpec)

{@inheritDoc}

AbstractCopyTask expand(java.util.Map properties)

{@inheritDoc}

AbstractCopyTask filter(java.util.Map properties, java.lang.Class filterType)

{@inheritDoc}

AbstractCopyTask filter(java.lang.Class filterType)

{@inheritDoc}

AbstractCopyTask filter(groovy.lang.Closure closure)

{@inheritDoc}

AbstractCopyTask from(java.lang.Object sourcePaths)

{@inheritDoc}

AbstractCopyTask from(java.lang.Object sourcePath, groovy.lang.Closure c)

{@inheritDoc}

protected CopyActionImpl getCopyAction()

FileCollection getDefaultSource()

int getDirMode()

{@inheritDoc}

java.util.Set getExcludes()

{@inheritDoc}

int getFileMode()

{@inheritDoc}

java.util.Set getIncludes()

{@inheritDoc}

protected CopySpec getMainSpec()

ReadableCopySpec getRootSpec()

FileCollection getSource()

AbstractCopyTask include(java.lang.String includes)

{@inheritDoc}

AbstractCopyTask include(java.lang.Iterable includes)

{@inheritDoc}

AbstractCopyTask include(Spec includeSpec)

{@inheritDoc}

AbstractCopyTask include(groovy.lang.Closure includeSpec)

{@inheritDoc}

AbstractCopyTask into(java.lang.Object destDir)

{@inheritDoc}

AbstractCopyTask into(java.lang.Object destPath, groovy.lang.Closure configureClosure)

{@inheritDoc}

boolean isCaseSensitive()

{@inheritDoc}

AbstractCopyTask rename(groovy.lang.Closure closure)

{@inheritDoc}

AbstractCopyTask rename(java.lang.String sourceRegEx, java.lang.String replaceWith)

{@inheritDoc}

AbstractCopyTask rename(java.util.regex.Pattern sourceRegEx, java.lang.String replaceWith)

{@inheritDoc}

void setCaseSensitive(boolean caseSensitive)

{@inheritDoc}

AbstractCopyTask setDirMode(int mode)

{@inheritDoc}

AbstractCopyTask setExcludes(java.lang.Iterable excludes)

{@inheritDoc}

AbstractCopyTask setFileMode(int mode)

{@inheritDoc}

AbstractCopyTask setIncludes(java.lang.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(groovy.lang.Closure closure)
{@inheritDoc}


exclude

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


exclude

public AbstractCopyTask exclude(java.lang.Iterable excludes)
{@inheritDoc}


exclude

public AbstractCopyTask exclude(Spec excludeSpec)
{@inheritDoc}


exclude

public AbstractCopyTask exclude(groovy.lang.Closure excludeSpec)
{@inheritDoc}


expand

public AbstractCopyTask expand(java.util.Map properties)
{@inheritDoc}


filter

public AbstractCopyTask filter(java.util.Map properties, java.lang.Class filterType)
{@inheritDoc}


filter

public AbstractCopyTask filter(java.lang.Class filterType)
{@inheritDoc}


filter

public AbstractCopyTask filter(groovy.lang.Closure closure)
{@inheritDoc}


from

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


from

public AbstractCopyTask from(java.lang.Object sourcePath, groovy.lang.Closure c)
{@inheritDoc}


getCopyAction

protected CopyActionImpl getCopyAction()


getDefaultSource

public FileCollection getDefaultSource()


getDirMode

public int getDirMode()
{@inheritDoc}


getExcludes

public java.util.Set getExcludes()
{@inheritDoc}


getFileMode

public int getFileMode()
{@inheritDoc}


getIncludes

public java.util.Set getIncludes()
{@inheritDoc}


getMainSpec

protected CopySpec getMainSpec()


getRootSpec

public ReadableCopySpec getRootSpec()


getSource

@InputFiles
@SkipWhenEmpty
@Optional
public FileCollection getSource()


include

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


include

public AbstractCopyTask include(java.lang.Iterable includes)
{@inheritDoc}


include

public AbstractCopyTask include(Spec includeSpec)
{@inheritDoc}


include

public AbstractCopyTask include(groovy.lang.Closure includeSpec)
{@inheritDoc}


into

public AbstractCopyTask into(java.lang.Object destDir)
{@inheritDoc}


into

public AbstractCopyTask into(java.lang.Object destPath, groovy.lang.Closure configureClosure)
{@inheritDoc}


isCaseSensitive

public boolean isCaseSensitive()
{@inheritDoc}


rename

public AbstractCopyTask rename(groovy.lang.Closure closure)
{@inheritDoc}


rename

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


rename

public AbstractCopyTask rename(java.util.regex.Pattern sourceRegEx, java.lang.String replaceWith)
{@inheritDoc}


setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)
{@inheritDoc}


setDirMode

public AbstractCopyTask setDirMode(int mode)
{@inheritDoc}


setExcludes

public AbstractCopyTask setExcludes(java.lang.Iterable excludes)
{@inheritDoc}


setFileMode

public AbstractCopyTask setFileMode(int mode)
{@inheritDoc}


setIncludes

public AbstractCopyTask setIncludes(java.lang.Iterable includes)
{@inheritDoc}


with

public CopySpec with(CopySpec sourceSpecs)
{@inheritDoc}


 

Groovy Documentation