Apache Ant difference - exec vs apply

ε祈祈猫儿з 提交于 2019-12-09 07:33:35

问题


Can anyone tell me the difference between <exec> and <apply> in Apache Ant?


回答1:


The main difference is that apply works for a resource collection - fileset, dirset and the like - so you can, for example, run a script once for each member of a fileset. exec doesn't operate on a fileset; each instance of the task only runs a single external program. Otherwise the tasks are quite similar.



来源:https://stackoverflow.com/questions/6288010/apache-ant-difference-exec-vs-apply

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!