I've a question about ANT property.
I want to do this :
<var name="index" value="1"/>
<for param="XXX">
....
<loadproperties prefix="${index}">
<zipentry zipfile="@{XXXX}" name="YYYY"/>
<filterchain>
<linecontains>
<contains value="ZZZZZ"/>
</linecontains>
</filterchain>
</loadproperties>
<echo message="${${index}.ZZZZZ}"/>
....
<math result="index" operand1="${index}" operation="+" operand2="1" datatype="int" />
The problem is to reuse the "index" variable to display the desired property . Is it possible to do that in ANT ? Thank you :)
I found the solution ...