@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.
|
TaskInputFilePropertyBuilder |
orderSensitive()
Sets the order of the files to be relevant when observing this property.
|
TaskInputFilePropertyBuilder |
orderSensitive(boolean orderSensitive)
Sets whether the order of the files is relevant when observing this property.
|
TaskInputs |
properties(Map<String,?> properties)
Deprecated.
Use
TaskInputs.properties(Map) directly instead. |
TaskInputs |
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.
|
TaskInputs |
source(Object... paths)
Deprecated.
Use
TaskInputs.source(Object...) directly instead. |
TaskInputs |
source(Object path)
Deprecated.
Use
TaskInputs.source(Object) directly instead. |
TaskInputs |
sourceDir(Object path)
Deprecated.
Use
TaskInputs.sourceDir(Object) directly instead. |
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 TaskPropertyBuilder
TaskInputFilePropertyBuilder skipWhenEmpty()
TaskInputFilePropertyBuilder skipWhenEmpty(boolean skipWhenEmpty)
TaskInputFilePropertyBuilder optional()
TaskInputFilePropertyBuilder optional(boolean optional)
TaskInputFilePropertyBuilder orderSensitive()
TaskInputFilePropertyBuilder orderSensitive(boolean orderSensitive)
TaskInputFilePropertyBuilder withPathSensitivity(PathSensitivity sensitivity)
withPathSensitivity
in interface TaskFilePropertyBuilder
@Deprecated boolean getHasInputs()
TaskInputs.getHasInputs()
directly instead.getHasInputs
in interface TaskInputs
@Deprecated FileCollection getFiles()
TaskInputs.getFiles()
directly instead.getFiles
in interface TaskInputs
@Deprecated TaskInputFilePropertyBuilder files(Object... paths)
TaskInputs.files(Object...)
directly instead.files
in interface CompatibilityAdapterForTaskInputs
files
in interface TaskInputs
paths
- The input files. The given paths are evaluated as per Project.files(Object...)
.@Deprecated TaskInputFilePropertyBuilder file(Object path)
TaskInputs.file(Object)
directly instead.file
in interface CompatibilityAdapterForTaskInputs
file
in interface TaskInputs
path
- The input file. The given path is evaluated as per Project.files(Object...)
.@Deprecated TaskInputFilePropertyBuilder dir(Object dirPath)
TaskInputs.dir(Object)
directly instead.dir
in interface CompatibilityAdapterForTaskInputs
dir
in interface TaskInputs
dirPath
- The directory. The path is evaluated as per Project.file(Object)
.@Deprecated Map<String,Object> getProperties()
TaskInputs.getProperties()
directly instead.getProperties
in interface TaskInputs
@Deprecated TaskInputs property(String name, Object value)
TaskInputs.property(String, Object)
directly instead.Registers an input property for this task. This value is persisted when the task executes, and is compared against the property value for later invocations of the task, to determine if the task is up-to-date.
The given value for the property must be Serializable, so that it can be persisted. It should also provide a
useful equals()
method.
You can specify a closure or Callable
as the value of the property. In which case, the closure or
Callable
is executed to determine the actual property value.
property
in interface TaskInputs
name
- 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.TaskInputs.property(String, Object)
for details.properties
in interface TaskInputs
properties
- The properties.@Deprecated boolean getHasSourceFiles()
TaskInputs.getHasSourceFiles()
directly instead.getHasSourceFiles
in interface TaskInputs
@Deprecated FileCollection getSourceFiles()
TaskInputs.getSourceFiles()
directly instead.getSourceFiles
in interface TaskInputs
@Deprecated TaskInputs source(Object... paths)
TaskInputs.source(Object...)
directly instead.TaskInputs.files(Object...)
.source
in interface TaskInputs
paths
- The paths. These are evaluated as per Project.files(Object...)
.@Deprecated TaskInputs source(Object path)
TaskInputs.source(Object)
directly instead.TaskInputs.files(Object...)
.source
in interface TaskInputs
path
- The path. This is evaluated as per Project.files(Object...)
.@Deprecated TaskInputs sourceDir(Object path)
TaskInputs.sourceDir(Object)
directly instead.TaskInputs.dir(Object)
.sourceDir
in interface TaskInputs
path
- The path. This is evaluated as per Project.file(Object)
.