|
|||||||||
| 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
Copies files into a destination directory. 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_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE |
| Constructor Summary | |
|---|---|
Copy()
|
|
| Method Summary | |
|---|---|
protected void |
configureRootSpec()
|
org.gradle.api.internal.file.copy.FileCopyActionImpl |
getCopyAction()
|
File |
getDestinationDir()
Returns the directory to copy files into. |
void |
setCopyAction(org.gradle.api.internal.file.copy.FileCopyActionImpl copyAction)
|
void |
setDestinationDir(File destinationDir)
Sets the directory to copy files into. |
| 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, getIncludeEmptyDirs, getIncludes, getMainSpec, getRootSpec, getSource, include, include, include, include, into, into, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setExcludes, setFileMode, setIncludeEmptyDirs, setIncludes, with |
| Methods inherited from class org.gradle.api.internal.ConventionTask |
|---|
conventionMapping, getConventionMapping, setConventionMapping |
| Methods inherited from class org.gradle.api.internal.AbstractTask |
|---|
addValidator, captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, 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, getValidators, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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)
AbstractCopyTask.into(Object) on this task.
destinationDir - The destination directory. Must not be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||