org.gradle.api.file
Interface ConfigurableFileTree
- All Superinterfaces:
- org.gradle.api.tasks.AntBuilderAware, Buildable, FileCollection, FileTree, java.lang.Iterable<java.io.File>, PatternFilterable
public interface ConfigurableFileTree
- extends FileTree, PatternFilterable
A FileTree
with a single base directory, which can be configured and modified.
You can obtain a ConfigurableFileTree
instance by calling Project.fileTree(java.util.Map)
.
Method Summary |
ConfigurableFileTree |
from(java.lang.Object dir)
Specifies base directory for this file tree using the given path. |
java.io.File |
getDir()
Returns the base directory of this file tree. |
ConfigurableFileTree |
setDir(java.lang.Object dir)
Specifies base directory for this file tree using the given path. |
Methods inherited from interface java.lang.Iterable |
iterator |
from
ConfigurableFileTree from(java.lang.Object dir)
- Specifies base directory for this file tree using the given path. The path is evaluated as for
Project.file(Object)
.
- Parameters:
dir
- The base directory.
- Returns:
- this
getDir
java.io.File getDir()
- Returns the base directory of this file tree.
- Returns:
- The base directory. Never returns null.
setDir
ConfigurableFileTree setDir(java.lang.Object dir)
- Specifies base directory for this file tree using the given path. The path is evaluated as for
Project.file(Object)
.
- Parameters:
dir
- The base directory.
- Returns:
- this