api / org.gradle.api / Task / hasProperty

hasProperty

abstract fun hasProperty(propertyName: String): Boolean

Determines if this task has the given property. See here for details of the properties which are available for a task.

Parameters

propertyName - The name of the property to locate.

Return
True if this project has the given property, false otherwise.