|
|||||||||
| 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.AbstractCopyTask
org.gradle.api.tasks.Copy
public class Copy
Task for copying files. This task can also rename and filter files as it copies.
The task implements CopySpec for specifying
what to copy.
Examples:
task(mydoc, type:Copy) {
from 'src/main/doc'
into 'build/target/doc'
}
task(initconfig, type:Copy) {
from('src/main/config') {
include '**/*.properties'
include '**/*.xml'
filter(ReplaceTokens, tokens:[version:'2.3.1'])
}
from('src/main/config') {
exclude '**/*.properties', '**/*.xml'
}
from('src/main/languages') {
rename 'EN_US_(*.)', '$1'
}
into 'build/target/config'
exclude '**/*.bak'
}
| Field Summary |
|---|
| Fields inherited from interface org.gradle.api.Task |
|---|
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_NAME, TASK_OVERWRITE, TASK_TYPE |
| Constructor Summary | |
|---|---|
Copy()
|
|
| Method Summary | |
|---|---|
protected void |
configureRootSpec()
|
org.gradle.api.internal.file.copy.FileCopyActionImpl |
getCopyAction()
|
File |
getDestinationDir()
|
void |
setCopyAction(org.gradle.api.internal.file.copy.FileCopyActionImpl copyAction)
|
void |
setDestinationDir(File destinationDir)
|
| Methods inherited from class org.gradle.api.tasks.AbstractCopyTask |
|---|
copy, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filter, filter, filter, from, from, getDefaultSource, getDirMode, getExcludes, getFileMode, getIncludes, getMainSpec, getRootSpec, getSource, include, include, include, include, into, into, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setExcludes, setFileMode, setIncludes, with |
| Methods inherited from class org.gradle.api.internal.ConventionTask |
|---|
conventionMapping, getConventionMapping, setConventionMapping |
| Methods inherited from class org.gradle.api.internal.AbstractTask |
|---|
captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, equals, 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, hashCode, 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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gradle.api.tasks.WorkResult |
|---|
getDidWork |
| Methods inherited from interface org.gradle.api.Task |
|---|
captureStandardOutput, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, getActions, getAnt, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getGroup, getInputs, getLogger, getLogging, getName, getOutputs, getPath, getProject, getState, getTaskDependencies, getTemporaryDir, hasProperty, leftShift, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setEnabled, setGroup, setOnlyIf, setOnlyIf, setProperty |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public Copy()
| Method Detail |
|---|
protected void configureRootSpec()
configureRootSpec in class AbstractCopyTaskpublic org.gradle.api.internal.file.copy.FileCopyActionImpl getCopyAction()
getCopyAction in class AbstractCopyTaskpublic void setCopyAction(org.gradle.api.internal.file.copy.FileCopyActionImpl copyAction)
public File getDestinationDir()
public void setDestinationDir(File destinationDir)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||