@Incubating public interface TaskInputFilePropertyBuilder extends TaskFilePropertyBuilder, TaskInputs
| Modifier and Type | Method and Description |
|---|---|
TaskInputFilePropertyBuilder |
dir(Object dirPath)
Deprecated.
Use
TaskInputs.dir(Object) directly instead. |
TaskInputFilePropertyBuilder |
file(Object path)
Deprecated.
Use
TaskInputs.file(Object) directly instead. |
TaskInputFilePropertyBuilder |
files(Object... paths)
Deprecated.
Use
TaskInputs.files(Object...) directly instead. |
FileCollection |
getFiles()
Deprecated.
Use
TaskInputs.getFiles() directly instead. |
boolean |
getHasInputs()
Deprecated.
Use
TaskInputs.getHasInputs() directly instead. |
boolean |
getHasSourceFiles()
Deprecated.
Use
TaskInputs.getHasSourceFiles() directly instead. |
Map<String,Object> |
getProperties()
Deprecated.
Use
TaskInputs.getProperties() directly instead. |
FileCollection |
getSourceFiles()
Deprecated.
Use
TaskInputs.getSourceFiles() directly instead. |
TaskInputFilePropertyBuilder |
optional()
Marks a task property as optional.
|
TaskInputFilePropertyBuilder |
optional(boolean optional)
Sets whether the task property is optional.
|
TaskInputs |
properties(Map<String,?> properties)
Deprecated.
Use
TaskInputs.properties(Map) directly instead. |
TaskInputPropertyBuilder |
property(String name,
Object value)
Deprecated.
Use
TaskInputs.property(String, Object) directly instead. |
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.
|
TaskInputFilePropertyBuilder |
withNormalizer(Class<? extends FileNormalizer> normalizer)
Sets the normalizer to use for this property.
|
TaskInputFilePropertyBuilder |
withPathSensitivity(PathSensitivity sensitivity)
Sets which part of the path of files should be considered during up-to-date checks.
|
TaskInputFilePropertyBuilder |
withPropertyName(String propertyName)
Sets the name for this property.
|
TaskInputFilePropertyBuilder withPropertyName(String propertyName)
If the method is not called, or if it is called with null, a name
will be assigned to the property automatically.
withPropertyName in interface TaskFilePropertyBuilderTaskInputFilePropertyBuilder skipWhenEmpty()
TaskInputFilePropertyBuilder skipWhenEmpty(boolean skipWhenEmpty)
TaskInputFilePropertyBuilder optional()
TaskInputFilePropertyBuilder optional(boolean optional)
TaskInputFilePropertyBuilder withPathSensitivity(PathSensitivity sensitivity)
TaskInputFilePropertyBuilder withNormalizer(Class<? extends FileNormalizer> normalizer)
@Deprecated boolean getHasInputs()
TaskInputs.getHasInputs() directly instead.UnsupportedOperationException.getHasInputs in interface TaskInputs@Deprecated FileCollection getFiles()
TaskInputs.getFiles() directly instead.UnsupportedOperationException.getFiles in interface TaskInputs@Deprecated TaskInputFilePropertyBuilder files(Object... paths)
TaskInputs.files(Object...) directly instead.UnsupportedOperationException.files in interface CompatibilityAdapterForTaskInputsfiles in interface TaskInputspaths - The input files. The given paths are evaluated as per Project.files(Object...).@Deprecated TaskInputFilePropertyBuilder file(Object path)
TaskInputs.file(Object) directly instead.UnsupportedOperationException.file in interface CompatibilityAdapterForTaskInputsfile in interface TaskInputspath - The input file. The given path is evaluated as per Project.file(Object).@Deprecated TaskInputFilePropertyBuilder dir(Object dirPath)
TaskInputs.dir(Object) directly instead.UnsupportedOperationException.dir in interface CompatibilityAdapterForTaskInputsdir in interface TaskInputsdirPath - The directory. The path is evaluated as per Project.file(Object).@Deprecated Map<String,Object> getProperties()
TaskInputs.getProperties() directly instead.UnsupportedOperationException.getProperties in interface TaskInputs@Deprecated TaskInputPropertyBuilder property(String name, @Nullable Object value)
TaskInputs.property(String, Object) directly instead.UnsupportedOperationException.property in interface CompatibilityAdapterForTaskInputsproperty in interface TaskInputsname - The name of the property. Must not be null.value - The value for the property. Can be null.@Deprecated TaskInputs properties(Map<String,?> properties)
TaskInputs.properties(Map) directly instead.UnsupportedOperationException.properties in interface TaskInputsproperties - The properties.@Deprecated boolean getHasSourceFiles()
TaskInputs.getHasSourceFiles() directly instead.UnsupportedOperationException.getHasSourceFiles in interface TaskInputs@Deprecated FileCollection getSourceFiles()
TaskInputs.getSourceFiles() directly instead.UnsupportedOperationException.getSourceFiles in interface TaskInputs