ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <BBurg...@tiaa-cref.org>
Subject RE: visibility of the variable/parameter
Date Wed, 21 Feb 2007 21:01:16 GMT
I believe ant contrib. has an "antcallback" task (or something like
that) that might accomplish what you are looking for.

Ben

-----Original Message-----
From: Dharmesh Vyas [mailto:dharmesh.mail@gmail.com] 
Sent: Wednesday, February 21, 2007 2:44 PM
To: Ant Users List
Subject: Re: visibility of the variable/parameter

Thanks for your reply Ben and Antoine.

Ben: In my case what I am planning to implement, I won't be able to use
'depends'.

So, prob. I will have to use a work around of writing down the values to
some file. But, still I am wondering if I could find out some other
option.

Thanks,
- Dharmesh.

On 2/21/07, Antoine Levy-Lambert <antoine@gmx.de> wrote:
>
> Hello Dharmesh,
>
> properties set in an antcall are not visible when the antcall returns.
>
> antcall (and ant) generate new tables of properties and reference ids.
>
> Regards,
>
> Antoine
>
> -------- Original-Nachricht --------
> Datum: Wed, 21 Feb 2007 16:57:41 +0100
> Von: "Dharmesh Vyas" <dharmesh.mail@gmail.com>
> An: "Ant Users List" <user@ant.apache.org>
> CC:
> Betreff: visibility of the variable/parameter
>
> > Hello Group,
> >
> > Shown below is the small illustration of something which I am trying
to
> > implement. I am not sure, where/what I am missing.
> >
> >
> >   <target name="all" depends="X,Y">
> >   </target>
> >
> >   <target name="X">
> >     <antcall target="callY"/>
> >   </target>
> >
> >   <target name="callY">
> >     <condition property="view">
> >       <equals arg1="0" arg2="0" />
> >     </condition>
> >     <echo>value of view is ${view}</echo>   ---> Which shows as true
> >   </target>
> >
> >   <target name="Y">
> >     <echo>value of view is ${view}</echo> -----> value of view is
not
> set
> >     <if>
> >       <equals arg1="${view}" arg2="view"/>
> >         <then>
> >           <echo message="view is set"/>
> >           {I want to perform something over here}
> >         </then>
> >       <else>
> >           <echo message="view is not set"/>
> >       </else>
> >     </if>
> >   </target>
> >
> > (1) I am not understanding that when target 'Y' is called, why the
value
> > of
> > view is not visible?? (Is it local to only taget callY)
> > (2) How shall I implement it so that, I get the value of view in Y.
( I
> > want
> > to call target Y only from all and not other target)
> >
> > Please forgive me if this is a stupid question but finally after
trying
> > here
> > and there i thought of asking.
> >
> > Thanks in advance,
> > - Dharmesh Vyas.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


**************************************************************
This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************


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


Mime
View raw message