ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject RE: difference between runtarget and antcall?
Date Wed, 22 Jun 2005 14:59:46 GMT
> From: Burgess, Benjamin [mailto:BBurgess@tiaa-cref.org]
> 
> Antcall creates a new project.  Runtarget does not.
> 
> -----Original Message-----
> From: hind.lwahhabi@accenture.com [mailto:hind.lwahhabi@accenture.com]
> 
> 'lo gentle people!
> does somebody know the difference between <runtarget> from antcontrib
> and <antcall>.

Which means that <antcall> is slower but safer. The two main differences
(beside speed) is that properties set during the <antcall> do not propagate
to the parent project (are not visible past the <antcall>), and <antcall>
honors the called target's dependencies, whereas <runtarget> does not (the
dependent targets executed depend on which targets where already executed at
the time of the <antcall>).

That's why <runtarget> is not in Ant proper. It's dangerous, and you have to
be an experienced Ant users to understand its tradeoffs (speed v.s.
safety/correctness). --DD


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message