For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

DirectoryTree

A directory with some associated include and exclude patterns.

This interface does not allow mutation. However, the actual implementation may not be immutable.

Since

1.0

Inheritors

Functions

Link copied to clipboard
abstract fun getDir(): File
Returns the base directory of this tree.
Link copied to clipboard
abstract fun getPatterns(): PatternSet
Returns the patterns which select the files under the base directory.