【发布时间】:2018-03-28 09:48:25
【问题描述】:
我有以下 Ant 脚本:
<target name="make-ears">
<for list="1,2,3,4" param="clone-nr">
<sequential>
<!-- Do stuff -->
</sequential>
</for>
</target>
我更喜欢动态设置大小:
<property name="nr_clones" value="4" />
并且有类似的东西:
<for list="**1 to ${nr_clones}**" param="clone-nr"> <!-- ** Not working but would like to ** -->
【问题讨论】:
-
你实际上想在循环中做什么?
标签: ant ant-contrib