Overview
The property element is used to define a named property for a resource. When nested directly under the resource element the property will be added to the default version for the resource. If, on the other hand, the property is nested under a specific version element the property will be added to that version.
The properties defined in a resource may be introduced into your pulse file by referencing the resource and optionally specifying a version.
Attributes
| Attribute |
Description |
| add-to-environment |
If true, the property is introduced into the environment of all child processes in builds that import this property. |
| add-to-path |
If true, the value of this property is added to the PATH environment variable when searching for and executing child processes in builds that import this property. |
| name |
The name of the property. |
| resolve-variables |
If true, property references in the variable value will be resolved. This is separate to normal property resolution: the scope is not that of the resource XML file but rather the properties for the build. Any properties thus-referenced must be escaped such that they are not resolved while processing the resource XML file. |
| value |
The value of the property. |
Child Elements
None.
Examples
A property in the default version:
<resource name="example">
<property name="foo" value="bar"/>
</resource>
A property in a specific version:
<resource name="example">
<version value="1.0">
<property name="foo" value="bar"/>
</version>
</resource>