Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Constructor Summary
`protected AbstractCopyTask()`

Method Summary
`protected void` | `configureRootSpec()`
`protected void` | `copy()`
`protected CopyAction` | `createCopyAction()`
`protected CopySpecInternal` | `createRootSpec()`
`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` | `filesMatching(String pattern, Action action)` {@inheritDoc}
`AbstractCopyTask` | `filesNotMatching(String pattern, Action action)` {@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}
`FileCollection` | `getDefaultSource()` Returns the default source for this task.
`Integer` | `getDirMode()` {@inheritDoc}
`DuplicatesStrategy` | `getDuplicatesStrategy()` {@inheritDoc}
`Set` | `getExcludes()` {@inheritDoc}
`Integer` | `getFileMode()` {@inheritDoc}
`boolean` | `getIncludeEmptyDirs()` {@inheritDoc}
`Set` | `getIncludes()` {@inheritDoc}
`protected CopySpecInternal` | `getMainSpec()`
`CopySpecInternal` | `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}
`void` | `setDuplicatesStrategy(DuplicatesStrategy strategy)` {@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}

Constructor Detail

### AbstractCopyTask

    protected AbstractCopyTask()

Method Detail

### configureRootSpec

    protected void configureRootSpec()

### copy

    @TaskAction
    protected void copy()

### createCopyAction

    protected CopyAction createCopyAction()

### createRootSpec

    protected CopySpecInternal createRootSpec()

### 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}

### filesMatching

    public AbstractCopyTask filesMatching(String pattern, Action action)

  {@inheritDoc}

### filesNotMatching

    public AbstractCopyTask filesNotMatching(String pattern, Action action)

  {@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}

### getDefaultSource

    @Deprecated
    public FileCollection getDefaultSource()

  Returns the default source for this task.
  deprecated:
    Use getSource() instead.

### getDirMode

    public Integer getDirMode()

  {@inheritDoc}

### getDuplicatesStrategy

    public DuplicatesStrategy getDuplicatesStrategy()

  {@inheritDoc}

### getExcludes

    public Set getExcludes()

  {@inheritDoc}

### getFileMode

    public Integer getFileMode()

  {@inheritDoc}

### getIncludeEmptyDirs

    public boolean getIncludeEmptyDirs()

  {@inheritDoc}

### getIncludes

    public Set getIncludes()

  {@inheritDoc}

### getMainSpec

    protected CopySpecInternal getMainSpec()

### getRootSpec

    public CopySpecInternal 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}

### setDuplicatesStrategy

    public void setDuplicatesStrategy(DuplicatesStrategy strategy)

  {@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.10