property
Returns the value of the given property. This method locates a property as follows:
- If this project object has a property with the given name, return the value of the property.
- If this project has an extension with the given name, return the extension.
- If this project's convention object has a property with the given name, return the value of the property.
- If this project has an extra property with the given name, return the value of the property.
- If this project has a task with the given name, return the task.
- Search up through this project's ancestor projects for a convention property or extra property with the given name.
- If not found, a MissingPropertyException is thrown.
Return
The value of the property, possibly null.
Parameters
property Name
The name of the property.
See also
Throws
Missing Property Exception
When the given property is unknown.