property
Returns the value of the given property of this task. This method locates a property as follows:
- If this task object has a property with the given name, return the value of the property.
- If this task has an extension with the given name, return the extension.
- If this task has an extra property with the given name, return the value of the property.
- If not found, throw MissingPropertyException
Return
The value of the property, possibly null.
Parameters
property Name
The name of the property.
Throws
groovy. lang. Missing Property Exception
When the given property is unknown.