Font size:
Property-Results
Description
Processes a propertiesquery and executes successtarget or failtarget based on each matched property's value.
Parameters
| Attribute | Description | Required |
|---|---|---|
| value | The name of the referred parallel container | Yes |
| failtarget | The name of the target to call when matched property is equal to value | Yes |
| successtarget | The name of the target to call when matched property is not equal to value | Yes |
Parameters specified as nested elements
propertiesquery
A propertiesquery object.
Examples
Processes the propertiesquery syncresults and will execute dosuccess or doerror target based on each property's value equal to zero or not
<property-results value="0"
successtarget="dosuccess"
failtarget="doerror">
<propertiesquery refid="syncresults"/>
</property-results>
<target name="dosuccess">
<echo level="info">object ${node} succeeded</echo>
</target>
<target name="doerror">
<propertycopy from="stderr.${node}"
property="err"/>
<echo level="info">object ${node} failed, stderr: ${err}</echo>
</target>



