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.