Interface TaskInputPropertyBuilder
- All Superinterfaces:
CompatibilityAdapterForTaskInputs, TaskInputs, TaskPropertyBuilder
Describes an input property of a task.
- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.UseTaskInputs.file(Object)directly instead.Deprecated.UseTaskInputs.files(Object...)directly instead.getFiles()Deprecated.UseTaskInputs.getFiles()directly instead.booleanDeprecated.UseTaskInputs.getHasInputs()directly instead.booleanDeprecated.UseTaskInputs.getHasSourceFiles()directly instead.Deprecated.UseTaskInputs.getProperties()directly instead.Deprecated.UseTaskInputs.getSourceFiles()directly instead.optional(boolean optional) Sets whether the task property is optional.properties(Map<String, ?> properties) Deprecated.UseTaskInputs.properties(Map)directly instead.Deprecated.UseTaskInputs.property(String, Object)directly instead.
-
Method Details
-
optional
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. -
getHasInputs
Deprecated.UseTaskInputs.getHasInputs()directly instead.ThrowsUnsupportedOperationException.- Specified by:
getHasInputsin interfaceTaskInputs- Returns:
- true if this task has declared any inputs.
-
getFiles
Deprecated.UseTaskInputs.getFiles()directly instead.ThrowsUnsupportedOperationException.- Specified by:
getFilesin interfaceTaskInputs- Returns:
- The input files. Returns an empty collection if this task has no input files.
-
files
Deprecated.UseTaskInputs.files(Object...)directly instead.ThrowsUnsupportedOperationException.- Specified by:
filesin interfaceCompatibilityAdapterForTaskInputs- Specified by:
filesin interfaceTaskInputs- Parameters:
paths- The input files. The given paths are evaluated as perProject.files(Object...).- Returns:
- a property builder to further configure the property.
-
file
Deprecated.UseTaskInputs.file(Object)directly instead.ThrowsUnsupportedOperationException.- Specified by:
filein interfaceCompatibilityAdapterForTaskInputs- Specified by:
filein interfaceTaskInputs- Parameters:
path- The input file. The given path is evaluated as perProject.file(Object).- Returns:
- a property builder to further configure the property.
-
dir
Deprecated.UseTaskInputs.dir(Object)directly instead.ThrowsUnsupportedOperationException.- Specified by:
dirin interfaceCompatibilityAdapterForTaskInputs- Specified by:
dirin interfaceTaskInputs- Parameters:
dirPath- The directory. The path is evaluated as perProject.file(Object).- Returns:
- a property builder to further configure the property.
-
getProperties
Deprecated.UseTaskInputs.getProperties()directly instead.ThrowsUnsupportedOperationException.- Specified by:
getPropertiesin interfaceTaskInputs- Returns:
- The properties.
-
property
Deprecated.UseTaskInputs.property(String, Object)directly instead.ThrowsUnsupportedOperationException.- Specified by:
propertyin interfaceCompatibilityAdapterForTaskInputs- Specified by:
propertyin interfaceTaskInputs- Parameters:
name- The name of the property. Must not be null.value- The value for the property. Can be null.
-
properties
Deprecated.UseTaskInputs.properties(Map)directly instead.ThrowsUnsupportedOperationException.- Specified by:
propertiesin interfaceTaskInputs- Parameters:
properties- The properties.
-
getHasSourceFiles
Deprecated.UseTaskInputs.getHasSourceFiles()directly instead.ThrowsUnsupportedOperationException.- Specified by:
getHasSourceFilesin interfaceTaskInputs- Returns:
- true if this task has source files, false if not.
-
getSourceFiles
Deprecated.UseTaskInputs.getSourceFiles()directly instead.ThrowsUnsupportedOperationException.- Specified by:
getSourceFilesin interfaceTaskInputs- Returns:
- The set of source files for this task.
-
TaskInputs.dir(Object)directly instead.