【发布时间】:2013-05-20 10:50:37
【问题描述】:
我想使用 ant 脚本构建几个基于 .composites 的项目。 我在 build.xml 文件中添加了所有 taskref 标签、lib 路径。 我为此编写了以下代码,但出现错误 foreach 不支持嵌套的“antcall”元素。
<target name="createApplicationDAA">
<foreach param="program">
<path>
<fileset dir="${soaProjectName}/Composites" includes="**/*.composite"/>
</path>
<antcall target="createDAA"/>
</foreach>
</target>
<target name="createDAA">
..........
....
</target>
显然, 我的要求是通过在 ant 脚本中使用 foreach 或 for 循环构建所有复合材料来创建所有 DAA。 谁能告诉我,我哪里做错了?
【问题讨论】:
标签: ant ant-contrib