api / org.gradle.api.tasks / TaskInputPropertyBuilder

TaskInputPropertyBuilder

interface TaskInputPropertyBuilder : TaskPropertyBuilder, TaskInputs

Describes an input property of a task.

Since
4.3

Functions

dir

abstract fun dir(dirPath: Any): TaskInputFilePropertyBuilder

Throws UnsupportedOperationException.

file

abstract fun file(path: Any): TaskInputFilePropertyBuilder

Throws UnsupportedOperationException.

files

abstract fun files(vararg paths: Any): TaskInputFilePropertyBuilder

Throws UnsupportedOperationException.

getFiles

abstract fun getFiles(): FileCollection

Throws UnsupportedOperationException.

getHasInputs

abstract fun getHasInputs(): Boolean

Throws UnsupportedOperationException.

getHasSourceFiles

abstract fun getHasSourceFiles(): Boolean

Throws UnsupportedOperationException.

getProperties

abstract fun getProperties(): MutableMap<String, Any>

Throws UnsupportedOperationException.

getSourceFiles

abstract fun getSourceFiles(): FileCollection

Throws UnsupportedOperationException.

optional

abstract fun optional(optional: Boolean): TaskInputPropertyBuilder

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.

properties

abstract fun properties(properties: MutableMap<String, *>): TaskInputs

Throws UnsupportedOperationException.

property

abstract fun property(name: String, value: Any): TaskInputPropertyBuilder

Throws UnsupportedOperationException.