|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.gradle.api.file.ContentFilterableorg.gradle.api.file.CopyProcessingSpec
public interface CopyProcessingSpec extends ContentFilterable
Specifies the destination of a copy.
| Method Summary | |
|---|---|
CopyProcessingSpec
|
eachFile(Action action)
Adds an action to be applied to each file as it about to be copied into its destination. |
CopyProcessingSpec
|
eachFile(groovy.lang.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(java.lang.Object destPath)
Specifies the destination directory for a copy. |
CopyProcessingSpec
|
rename(groovy.lang.Closure closure)
Renames a source file to a different relative location under the target directory. |
CopyProcessingSpec
|
rename(java.lang.String sourceRegEx, java.lang.String replaceWith)
Renames files based on a regular expression. |
CopyProcessingSpec
|
rename(java.util.regex.Pattern sourceRegEx, java.lang.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 ContentFilterable | |
|---|---|
| expand, filter, filter, filter |
| Method Detail |
|---|
public CopyProcessingSpec eachFile(Action action)
action - The action to execute.
public CopyProcessingSpec eachFile(groovy.lang.Closure closure)
closure - The action to execute.
public int getDirMode()
public int getFileMode()
public CopyProcessingSpec into(java.lang.Object destPath)
destPath - Path to the destination directory for a Copy
public CopyProcessingSpec rename(groovy.lang.Closure closure)
closure - rename closure
public CopyProcessingSpec rename(java.lang.String sourceRegEx, java.lang.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)
public CopyProcessingSpec rename(java.util.regex.Pattern sourceRegEx, java.lang.String replaceWith)
sourceRegEx - Source regular expressionreplaceWith - Replacement string (use \$ syntax for capture groups)
public CopyProcessingSpec setDirMode(int mode)
mode - The directory permissions.
public CopyProcessingSpec setFileMode(int mode)
mode - The file permissions.
Groovy Documentation