Font size:
Parallel-Addmacro
Description
Schedules a macro for execution within the referred parallel container.
Parameters
| Attribute | Description | Required |
|---|---|---|
| refid | The name of the referred parallel container | Yes |
| macro | The name of the macro to call | Yes |
Parameters specified as nested elements
propertiesquery
A propertiesquery object.
Examples
Schedule instances of the sync-node macro based on nested propertiesquery
<macrodef name="sync-node">
<attribute name="node"/>
<sequential>
<exec executable="scp"
resultproperty="result.@{node}"
outputproperty="stdout.@{node}"
errorproperty="stderr.@{node}"
failonerror="false">
</exec>
</sequential>
</macrodef>
<parallel-addmacro refid="parallel-sync"
macro="sync-node">
<propertiesquery refid="nodesquery"/>
</parallel-addmacro>



