Describes an input property of a task that contains zero or more files.
Type | Name and description |
---|---|
TaskInputFilePropertyBuilder |
dir(Object dirPath) {@inheritDoc} |
TaskInputFilePropertyBuilder |
file(Object path) {@inheritDoc} |
TaskInputFilePropertyBuilder |
files(Object... paths) {@inheritDoc} |
FileCollection |
getFiles() {@inheritDoc} |
boolean |
getHasInputs() {@inheritDoc} |
boolean |
getHasSourceFiles() {@inheritDoc} |
Map<String, Object> |
getProperties() {@inheritDoc} |
FileCollection |
getSourceFiles() {@inheritDoc} |
TaskInputFilePropertyBuilder |
optional() Marks a task property as optional. |
TaskInputFilePropertyBuilder |
optional(boolean optional) Sets whether the task property is optional. |
TaskInputs |
properties(Map<String, ?> properties) {@inheritDoc} |
TaskInputs |
property(String name, Object value) {@inheritDoc} |
TaskInputFilePropertyBuilder |
skipWhenEmpty() Skip executing the task if the property contains no files. |
TaskInputFilePropertyBuilder |
skipWhenEmpty(boolean skipWhenEmpty) Sets whether executing the task should be skipped if the property contains no files. |
TaskInputs |
source(Object... paths) {@inheritDoc} |
TaskInputs |
source(Object path) {@inheritDoc} |
TaskInputs |
sourceDir(Object path) {@inheritDoc} |
TaskInputFilePropertyBuilder |
withPropertyName(String propertyName) {@inheritDoc} |
Methods inherited from class | Name |
---|---|
interface TaskInputs |
dir, file, files, getFiles, getHasInputs, getHasSourceFiles, getProperties, getSourceFiles, properties, property, source, source, sourceDir |
interface TaskPropertyBuilder |
withPropertyName |
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Marks a task property as optional. This means that a value does not have to be specified for the property, but any value specified must meet the validation constraints for the property.
Sets whether the task property is optional. If the task property is optional, it means that a value does not have to be specified for the property, but any value specified must meet the validation constraints for the property.
{@inheritDoc}
{@inheritDoc}
Skip executing the task if the property contains no files. If there are multiple properties with {code skipWhenEmpty = true}, then they all need to be empty for the task to be skipped.
Sets whether executing the task should be skipped if the property contains no files. If there are multiple properties with {code skipWhenEmpty = true}, then they all need to be empty for the task to be skipped.
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}