【发布时间】:2009-04-21 21:09:44
【问题描述】:
我在各个目录中有一堆子项目。我想将它们指定为一个列表,然后对于给定的目标,我想逐个遍历每个目标并调用 subant。
我有类似的东西:
<target name="run">
<subant target="run" failonerror="true" verbose="true">
<fileset dir="${projectA}" includes="build.xml"/>
</subant>
<subant target="run" failonerror="true" verbose="true">
<fileset dir="${projectB}" includes="build.xml"/>
</subant>
</target>
但我必须为每个项目和每个目标集指定一个单独的子行。我要做的就是创建一个作为子项目列表的属性,并以某种方式使用它。它应该很简单,但是....
【问题讨论】: