api / org.gradle.api.tasks / TaskFilePropertyBuilder / withPropertyName

withPropertyName

abstract fun withPropertyName(propertyName: String): TaskFilePropertyBuilder

Sets the name for this property. The name must be a non-empty string.

If the method is not called, or if it is called with null, a name will be assigned to the property automatically.