| Orangevolt ANT Tasks » Tasks » properties | ||
| Element merge | Example | |
To define a property you can use element property.
The property element supports various conditions which affect's in setting the property or not.
| Name | Description | Required |
| name | The name of the property. | yes |
| value | The value of the property. The value can also be set by attaching the text as element content. | yes |
| Condition attributes (only one condition can be defined) | ||
| if | The property will be set only if a property with this name exists. | false |
| unless | The property will be set only if no property with this name exists. | false |
| available |
The property will be set only if the resource or class exists. In case of a Java class the existence will be tested using Class.forName( class). In case of a Resource the existence will be tested using ClassLoader.getSystemResource( resource). |
false |
| istrue | The property will be set if the attribute value is "true" (ignoring case). | false |
| isfalse | The property will be set if the queried property does exist and the attribute value is "false" (ignoring case). | false |