api / org.gradle.api.tasks / OutputDirectory

OutputDirectory

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FIELD]) class OutputDirectory

Marks a property as specifying an output directory for a task.

This annotation should be attached to the getter method in Java or the property in Groovy. Annotations on setters or just the field in Java are ignored.

This will cause the task to be considered out-of-date when the directory path or task output to that directory has been modified since the task was last run.

Constructors

<init>

OutputDirectory()

Marks a property as specifying an output directory for a task.

This annotation should be attached to the getter method in Java or the property in Groovy. Annotations on setters or just the field in Java are ignored.

This will cause the task to be considered out-of-date when the directory path or task output to that directory has been modified since the task was last run.