|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CopyProcessingSpec
Specifies the destination of a copy.
| Method Summary | |
|---|---|
CopyProcessingSpec |
eachFile(Action<? super FileCopyDetails> action)
Adds an action to be applied to each file as it about to be copied into its destination. |
CopyProcessingSpec |
eachFile(Closure closure)
Adds an action to be applied to each file as it about to be copied into its destination. |
int |
getDirMode()
Returns the Unix permissions to use for the target directories. |
int |
getFileMode()
Returns the Unix permissions to use for the target files. |
CopyProcessingSpec |
into(Object destPath)
Specifies the destination directory for a copy. |
CopyProcessingSpec |
rename(Closure closure)
Renames a source file to a different relative location under the target directory. |
CopyProcessingSpec |
rename(Pattern sourceRegEx,
String replaceWith)
Renames files based on a regular expression. |
CopyProcessingSpec |
rename(String sourceRegEx,
String replaceWith)
Renames files based on a regular expression. |
CopyProcessingSpec |
setDirMode(int mode)
Sets the Unix permissions to use for the target directories. |
CopyProcessingSpec |
setFileMode(int mode)
Sets the Unix permissions to use for the target files. |
| Methods inherited from interface org.gradle.api.file.ContentFilterable |
|---|
expand, filter, filter, filter |
| Method Detail |
|---|
CopyProcessingSpec into(Object destPath)
Project.file(Object).
destPath - Path to the destination directory for a Copy
CopyProcessingSpec rename(Closure closure)
closure - rename closure
CopyProcessingSpec rename(String sourceRegEx,
String replaceWith)
Example:
rename '(.*)_OEM_BLUE_(.*)', '$1$2'would map the file 'style_OEM_BLUE_.css' to 'style.css'
sourceRegEx - Source regular expressionreplaceWith - Replacement string (use $ syntax for capture groups)
CopyProcessingSpec rename(Pattern sourceRegEx,
String replaceWith)
rename(String, String).
sourceRegEx - Source regular expressionreplaceWith - Replacement string (use $ syntax for capture groups)
int getFileMode()
CopyProcessingSpec setFileMode(int mode)
mode - The file permissions.
int getDirMode()
CopyProcessingSpec setDirMode(int mode)
mode - The directory permissions.
CopyProcessingSpec eachFile(Action<? super FileCopyDetails> action)
action - The action to execute.
CopyProcessingSpec eachFile(Closure closure)
FileCopyDetails as its parameter. Actions are executed in the order
added, and are inherited from the parent spec.
closure - The action to execute.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||