CompatibilityAdapterForTaskInputs, TaskFilePropertyBuilder, TaskInputs, TaskPropertyBuilderpublic interface TaskInputFilePropertyBuilder extends TaskFilePropertyBuilder, TaskInputs
| Modifier and Type | Method | Description |
|---|---|---|
TaskInputFilePropertyBuilder |
dir(java.lang.Object dirPath) |
Deprecated.
Use
TaskInputs.dir(Object) directly instead. |
TaskInputFilePropertyBuilder |
file(java.lang.Object path) |
Deprecated.
Use
TaskInputs.file(Object) directly instead. |
TaskInputFilePropertyBuilder |
files(java.lang.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. |
java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,?> properties) |
Deprecated.
Use
TaskInputs.properties(Map) directly instead. |
TaskInputPropertyBuilder |
property(java.lang.String name,
java.lang.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(java.lang.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(java.lang.String propertyName) |
Sets the name for this property.
|
TaskInputFilePropertyBuilder withPropertyName(java.lang.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)
@Incubating TaskInputFilePropertyBuilder withNormalizer(java.lang.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(java.lang.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(java.lang.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(java.lang.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 java.util.Map<java.lang.String,java.lang.Object> getProperties()
TaskInputs.getProperties() directly instead.UnsupportedOperationException.getProperties in interface TaskInputs@Deprecated TaskInputPropertyBuilder property(java.lang.String name, @Nullable java.lang.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(java.util.Map<java.lang.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