ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santoshi, Vishal" <Vishal_Santo...@gallup.com>
Subject RE: AW: Calling a target from within a target and passing arguments...
Date Tue, 21 Jun 2005 14:25:16 GMT
Great .
I have used ANT a lot but not under this context .
And instead of serching for an answer  I figured I'll give posting this query on the group
a try ..
The response has ben awesome .

Thanks again . 

-----Original Message-----
From: Jeffrey E Care [mailto:carej@us.ibm.com] 
Sent: Tuesday, June 21, 2005 7:47 AM
To: Ant Users List
Subject: Re: AW: Calling a target from within a target and passing arguments...

<macrodef> could also work, depending on what needs to be performed by the callee.

--
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


<Jan.Materne@rzf.fin-nrw.de> wrote on 06/21/2005 01:45:54 AM:

> I would use <macrodef>
> 
> 
> <macrodef name="a">
>     <attribute name="x"/>
>     <attribute name="y"/>
>     <sequential>
>         <echo>called 'a' with x='@{x}' and y='@{y}'</echo>
>     </sequential>
> </macrodef>
> 
> <target name="b">
>     <a x="hello" y="world"/>
> </target>
> 
> needs Ant 1.6+
> 
> 
> cheers
> Jan
> 
> 
> >-----Urspr√ľngliche Nachricht-----
> >Von: Jeffrey E Care [mailto:carej@us.ibm.com] 
> >Gesendet: Dienstag, 21. Juni 2005 00:06
> >An: Ant Users List
> >Betreff: Re: Calling a target from within a target and passing 
> >arguments...
> >
> >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" <Vishal_Santoshi@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>
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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


Mime
View raw message