You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Santoshi, Vishal" <Vi...@gallup.com> on 2005/06/20 23:56:05 UTC

Calling a target from within a target and passing arguments...

Is it possible to call a target from within another target and pass in
arguments to the called target ?
 
Or 
 
Is this possible?
 
<target A>
<!-- depends on args x and y -->
</target>
 
<target B>
 <!-- calls target A with two arguments that are intercepted by target A
as x and y-->
</target>

Re: Calling a target from within a target and passing arguments...

Posted by Jeffrey E Care <ca...@us.ibm.com>.
Check the manual for the <antcall> task.

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


"Santoshi, Vishal" <Vi...@gallup.com> wrote on 06/20/2005 
05:56:05 PM:

> Is it possible to call a target from within another target and pass in
> arguments to the called target ?
> 
> Or 
> 
> Is this possible?
> 
> <target A>
> <!-- depends on args x and y -->
> </target>
> 
> <target B>
>  <!-- calls target A with two arguments that are intercepted by 
> target A
as x and y-->
> </target>

Re: Calling a target from within a target and passing arguments...

Posted by Ivan Ivanov <ra...@yahoo.com>.
Yes, it can, <antcall> is what you are looking for.

HTH Ivan

--- "Santoshi, Vishal" <Vi...@gallup.com>
wrote:

> Is it possible to call a target from within another
> target and pass in
> arguments to the called target ?
>  
> Or 
>  
> Is this possible?
>  
> <target A>
> <!-- depends on args x and y -->
> </target>
>  
> <target B>
>  <!-- calls target A with two arguments that are
> intercepted by target A
> as x and y-->
> </target>
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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