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.

dir

abstract fun dir(dirPath: Any): TaskInputFilePropertyBuilder(source)

Registers an input directory hierarchy. All files found under the given directory are treated as input files for this task.

An input directory hierarchy ignores empty directories by default. See ignoreEmptyDirectories.

Return

a property builder to further configure the property.

Since

0.9

Parameters

dirPath

The directory. The path is evaluated as per file.