Properties
The <property> element provides a way to bind a name to a simple string value. Properties are useful for reducing repetition in pulse™ files by giving commonly-used values a name that can be used in multiple places. If the value of the property changes, only one change is required to update the property file.
Syntax
Properties are referenced using the ${<name>} syntax, where <name> is the name of the property being referred to. For this reason, property names cannot contain the '}' character. Although it is possible, it is best not to use the '$' or '{' characters in a property name either. Property references can only be made in attribute values.
Built-in Properties
When processing a pulse file, several variables are automatically added to the global scope. See the Properties page for details.
Attributes
| Attribute |
Description |
Required? |
Default |
| name |
The name of the property. |
Yes |
|
| value |
The value of the property. |
No |
An empty string |
Examples
The most basic type of property:
<property name="my.property" value="my.value"/>
A property defined in terms of an earlier property:
<property name="bin.dir" value="bin"/>
<property name="script.dir" value="${bin.dir}/scripts"/>