Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Ant difference - exec vs apply

Tags:

apache

ant

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

like image 834
Matty F Avatar asked Jun 09 '11 04:06

Matty F


1 Answers

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.

like image 66
martin clayton Avatar answered Oct 08 '22 19:10

martin clayton