gradle
8.4

# ConfigurableFileTree

interface ConfigurableFileTree : FileTree, DirectoryTree, PatternFilterable, Buildable(source)

A FileTree with a single base directory, which can be configured and modified.

You can obtain a `ConfigurableFileTree` instance by calling fileTree.

## Functions

addToAntBuilder
Link copied to clipboard
abstract fun addToAntBuilder(builder: Any, nodeName: String): Any
abstract fun addToAntBuilder(builder: Any, nodeName: String, type: FileCollection.AntType)
builtBy
Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>): ConfigurableFileTree
Registers some tasks which build the files of this collection.
contains
Link copied to clipboard
abstract fun contains(file: File): Boolean
exclude
Link copied to clipboard
abstract fun exclude(excludes: Array<String>): PatternFilterable
filter
Link copied to clipboard
abstract fun filter(filterClosure: Closure): FileCollection
forEach
Link copied to clipboard
open fun forEach(action: Consumer<out Any>)
from
Link copied to clipboard
abstract fun from(dir: Any): ConfigurableFileTree
Specifies base directory for this file tree using the given path.
getAsFileTree
Link copied to clipboard
abstract fun getAsFileTree(): FileTree
getAsPath
Link copied to clipboard
abstract fun getAsPath(): String
getBuildDependencies
Link copied to clipboard
abstract fun getBuildDependencies(): TaskDependency
getBuiltBy
Link copied to clipboard
abstract fun getBuiltBy(): Set<Any>
Returns the set of tasks which build the files of this collection.
getDir
Link copied to clipboard
abstract fun getDir(): File
Returns the base directory of this file tree.
getElements
Link copied to clipboard
abstract fun getElements(): Provider<Set<FileSystemLocation>>
getExcludes
Link copied to clipboard
abstract fun getExcludes(): Set<String>
getFiles
Link copied to clipboard
abstract fun getFiles(): Set<File>
getIncludes
Link copied to clipboard
abstract fun getIncludes(): Set<String>
getPatterns
Link copied to clipboard
abstract fun getPatterns(): PatternSet
getSingleFile
Link copied to clipboard
abstract fun getSingleFile(): File
include
Link copied to clipboard
abstract fun include(includes: Array<String>): PatternFilterable
isEmpty
Link copied to clipboard
abstract fun isEmpty(): Boolean
iterator
Link copied to clipboard
abstract fun iterator(): Iterator<T>
matching
Link copied to clipboard
abstract fun matching(filterConfigClosure: Closure): FileTree
minus
Link copied to clipboard
abstract fun minus(collection: FileCollection): FileCollection
plus
Link copied to clipboard
abstract fun plus(collection: FileCollection): FileCollection
abstract fun plus(fileTree: FileTree): FileTree
setBuiltBy
Link copied to clipboard
abstract fun setBuiltBy(tasks: Iterable<out Any>): ConfigurableFileTree
Sets the tasks which build the files of this collection.
setDir
Link copied to clipboard
abstract fun setDir(dir: Any): ConfigurableFileTree
Specifies base directory for this file tree using the given path.
setExcludes
Link copied to clipboard
abstract fun setExcludes(excludes: Iterable<String>): PatternFilterable
setIncludes
Link copied to clipboard
abstract fun setIncludes(includes: Iterable<String>): PatternFilterable
spliterator
Link copied to clipboard
open fun spliterator(): Spliterator<T>
visit
Link copied to clipboard
abstract fun visit(visitor: FileVisitor): FileTree