|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface CopyProcessingSpec
Method Summary | |
---|---|
CopyProcessingSpec
|
filter(Map map, java.lang.Class filterType)
Adds a content filter to be used during the copy. |
CopyProcessingSpec
|
filter(java.lang.Class filterType)
Adds a content filter to be used during the copy. |
CopyProcessingSpec
|
filter(Closure closure)
Adds a content filter based on the provided closure. |
CopyProcessingSpec
|
into(java.lang.Object destPath)
Specifies the destination directory for a copy. |
CopyProcessingSpec
|
remapTarget(Closure closure)
Maps 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. |
Method Detail |
---|
public CopyProcessingSpec filter(Map map, java.lang.Class filterType)
Filter parameters may be specified using groovy map syntax.
Examples:
filter(HeadFilter, lines:25, skip:2) filter(ReplaceTokens, tokens:[copyright:'2009', version:'2.3.1'])
public CopyProcessingSpec filter(java.lang.Class filterType)
Examples:
filter(StripJavaComments) filter(com.mycompany.project.CustomFilter)
public CopyProcessingSpec filter(Closure closure)
public CopyProcessingSpec into(java.lang.Object destPath)
public CopyProcessingSpec remapTarget(Closure 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'
Groovy Documentation