I have the following Ant script:
<target name="make-ears">
<for list="1,2,3,4" param="clone-nr">
<sequential>
<!-- Do stuff -->
</sequential>
</for>
</target>
What I prefer is to set the size dynamically using:
<property name="nr_clones" value="4" />
And having something like:
<for list="**1 to ${nr_clones}**" param="clone-nr"> <!-- ** Not working but would like to ** -->
Fixed this by using Javascript:
Then using:
Credits: https://eureka.ykyuen.info/2014/01/17/apache-ant-iteration-within-a-specific-number-range/