|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.file.FileCopyDetailsorg.gradle.api.file.ContentFilterable
org.gradle.api.file.FileTreeElement
public interface FileCopyDetails extends ContentFilterable, FileTreeElement
Provides details about a file or directory about to be copied, and allows some aspects of the destination file to be modified.
Using this interface, you can change the destination path of the file, filter the content of the file, or exclude the file from the result entirely.
Method Summary | |
---|---|
void
|
exclude()
Excludes this file from the copy. |
DuplicatesStrategy
|
getDuplicatesStrategy()
Get the strategy for handling duplicates, either DuplicatesStrategy.include if duplicate files of this type should be retained or DuplicatesStrategy.exclude otherwise. |
void
|
setDuplicatesStrategy(DuplicatesStrategy strategy)
Sets the strategy for handling duplicates. |
void
|
setMode(int mode)
Sets the Unix permissions of this file. |
void
|
setName(String name)
Sets the destination name of this file. |
void
|
setPath(String path)
Sets the destination path of this file. |
void
|
setRelativePath(RelativePath path)
Sets the destination path of this file. |
Methods inherited from interface ContentFilterable | |
---|---|
expand, filter, filter, filter |
Methods inherited from interface FileTreeElement | |
---|---|
copyTo, copyTo, getFile, getLastModified, getMode, getName, getPath, getRelativePath, getSize, isDirectory, open |
Method Detail |
---|
public void exclude()
@Incubating public DuplicatesStrategy getDuplicatesStrategy()
@Incubating public void setDuplicatesStrategy(DuplicatesStrategy strategy)
strategy
- the strategy used when a duplicate file is encountered.
Either 'include', 'exclude', or 'inherit'
public void setMode(int mode)
mode
- the Unix permissions, e.g. 0644.
public void setName(String name)
name
- The name of this file.
public void setPath(String path)
path
- The path of this file.
public void setRelativePath(RelativePath path)
path
- the new path for this file.
Gradle API 1.7-rc-1