Apache Ant difference - exec vs apply

2020-06-07 02:03发布

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

标签: apache ant
1条回答
forever°为你锁心
2楼-- · 2020-06-07 02:51

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.

查看更多
登录 后发表回答