3
基本上,我想模仿apply
任務,但不是傳遞給它的executable
,我想傳遞一個Ant任務,並提出了類似:在螞蟻中,如何將目標應用於文件列表(不含ant-contrib)?
<project>
<target name="my-task">
<!--target definition-->
<target/>
<target name="my-task-on-files">
<apply task="my-task">
<srcfile/>
<targetfile/>
<fileset dir="." includes="*.xml"/>
</apply>
</target>
</project>
的問題是,apply
有task
屬性,但只有executable
。
我需要一個不需要ant-contrib
的解決方案。