Apache Ant的区别 - EXEC VS申请 [英] Apache Ant difference - exec vs apply

查看:139
本文介绍了Apache Ant的区别 - EXEC VS申请的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我之间的&LT的差异; EXEC> <申请> 在Apache Ant的

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

推荐答案

的主要区别在于, 适用的资源集合工程 - 文件集,dirset之类的 - 这样你就可以,例如,文件集的每个成员运行脚本一次。 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 VS申请的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆