Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
difference between runtarget and antcall?

difference between runtarget and antcall?

2005-06-22       - By hind.lwahhabi@(protected)
Reply:     1     2     3     4  

Thank you for the detailed information.i think i am going to stick to the
antcall task.

________________________________

From: Dominique Devienne [mailto:ddevienne@(protected)]
Sent: Wed 6/22/2005 4:59 PM
To: 'Ant Users List'
Subject: RE: difference between runtarget and antcall?



> From: Burgess, Benjamin [mailto:BBurgess@(protected)]
>
> Antcall creates a new project.  Runtarget does not.
>
> -----Original Message-----
> From: hind.lwahhabi@(protected) [mailto:hind.lwahhabi@(protected)]
>
> '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@(protected)
For additional commands, e-mail: user-help@(protected)





This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information.  If you have received it in
error, please notify the sender immediately and delete the original.  Any other
use of the email by you is prohibited.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.