|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CopyProcessingSpec
Method Summary | |
---|---|
CopyProcessingSpec |
filter(java.lang.Class<java.io.FilterReader> filterType)
Adds a content filter to be used during the copy. |
CopyProcessingSpec |
filter(groovy.lang.Closure closure)
Adds a content filter based on the provided closure. |
CopyProcessingSpec |
filter(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.Class<java.io.FilterReader> filterType)
Adds a content filter to be used during the copy. |
CopyProcessingSpec |
into(java.lang.Object destPath)
Specifies the destination directory for a copy. |
CopyProcessingSpec |
remapTarget(groovy.lang.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 |
---|
CopyProcessingSpec into(java.lang.Object destPath)
destPath
- Path to the destination directory for a Copy
CopyProcessingSpec remapTarget(groovy.lang.Closure closure)
closure
- remap closure
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)
CopyProcessingSpec filter(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.Class<java.io.FilterReader> 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'])
map
- map of filter parametersfilterType
- Class of filter to add
CopyProcessingSpec filter(java.lang.Class<java.io.FilterReader> filterType)
Examples:
filter(StripJavaComments) filter(com.mycompany.project.CustomFilter)
filterType
- Class of filter to add
CopyProcessingSpec filter(groovy.lang.Closure closure)
closure
- to implement line based filtering
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |