api / org.gradle.api.tasks / InputDirectory / <init>

<init>

InputDirectory()

Marks a property as specifying an input 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 location or contents have changed. To make the task dependent on the directory location but not the contents, use an org.gradle.api.tasks.Input annotation instead.