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>.
Comments
Also make sure you have the right level of ramclient libraries (go into the ramclient-ant.jar and check the antlib.xml see that the task is in your manifest.
I've worked with RAM 7.5.1.1 and didn't pay attention to attribute "planned for" of the enhancement.
Now trying the same example with 7.5.1.2, all is clear, thx all.