Apache Ant 区别 - exec 与 apply [英] Apache Ant difference - exec vs apply
本文介绍了Apache Ant 区别 - exec 与 apply的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能告诉我
和
在 Apache Ant 中的区别?
Can anyone tell me the difference between <exec>
and <apply>
in Apache Ant?
推荐答案
主要区别在于apply
适用于资源集合 - 文件集、目录集等 - 例如,您可以为文件集的每个成员运行一次脚本.exec
不对文件集进行操作;任务的每个实例只运行一个外部程序.否则,任务非常相似.
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.
这篇关于Apache Ant 区别 - exec 与 apply的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文