api / org.gradle.api.tasks / TaskOutputs / dirs

dirs

abstract fun dirs(vararg paths: Any): TaskOutputFilePropertyBuilder

Registers some output directories for this task.

When the given paths is a java.util.Map, then each output directory will be associated with an identity. For cacheable tasks this is a requirement. The keys of the map must be non-empty strings. The values of the map will be evaluated to individual directories as per org.gradle.api.Project#file(Object).

Otherwise the given directories will be evaluated as per org.gradle.api.Project#files(Object...), and task output caching will be disabled for the task.

Parameters

paths - The output files.

See Also
CacheableTask

Since
3.3