Ant Task Iterate is missing
Hi all,
I'm trying to use the task by this example:
But it appear do not exists regardless such enhancement https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/64258.
Is there any other way to iterate over a search result catching Asset objects?
I'm trying to use the task by this example:
<target name="testIterate">
<propertyHelper />
<search server="ramServer" query="test" id="searchResults" />
<iterate collection="searchResults" param="asset" target="printAssetName" />
</target>
<target name="printAssetName">
<propertyHelper />
<echo message="Name: ${asset.name}" />
</target>
But it appear do not exists regardless such enhancement https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/64258.
Is there any other way to iterate over a search result catching Asset objects?
Accepted answer
Which version of Ant do you have? This would only work in Ant 1.7, according to the enhancement.
Also, the workitem shows tag <ram:iterate> rather than just <iterate>.
Also, the workitem shows tag <ram:iterate> rather than just <iterate>.