File Tree
A FileTree represents a hierarchy of files. It extends FileCollection to add hierarchy query and manipulation methods. You typically use a FileTree to represent files to copy or the contents of an archive.
You can obtain a FileTree instance using fileTree, zipTree or tarTree.
The order of the files in a FileTree is not stable, even on a single computer.
Inheritors
Functions
Link copied to clipboard
Adds this collection to an Ant task as a nested node.
Link copied to clipboard
Restricts the contents of this collection to those files which match the given criteria.
Link copied to clipboard
Returns this.
Link copied to clipboard
Returns a dependency which contains the tasks which build this artifact.
Link copied to clipboard
Returns the contents of this file collection as a Provider of FileSystemLocation instances.
Link copied to clipboard
Returns the content of this collection, asserting it contains exactly one file.
Link copied to clipboard
abstract fun matching(@DelegatesTo(value = PatternFilterable::class ) filterConfigClosure: Closure): FileTree
Restricts the contents of this tree to those files matching the given filter.
Link copied to clipboard
Returns a
FileCollection which contains the difference between this collection and the given collection.Link copied to clipboard
Returns a
FileCollection which contains the union of this collection and the given collection.Returns a
FileTree which contains the union of this tree and the given tree.Link copied to clipboard
Link copied to clipboard
Visits the files and directories in this file tree.