Rubun,
try
<target name="failed" if="final.test.result.failed">
...
</target>
<target name="test">
<junit ....>
<antcall target="failed"/>
</target>
> -----Original Message-----
> From: Rubun Tang [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 4:36 PM
> To: 'Ant Users List'
> Subject: RE: if task
>
>
> Sorry for not making myself clear, this is the pseudocode of
> what I want to
> do:
>
> <target name="test">
>
> <junit.....>
> <if ${final.test.result.failed}="true">
> <fail message="test failed"/>
> </if>
> </target>
>
> i.e. I want to call the <fail> task if only
> final.test.result.failed is set
> to "true"..
> I will try to see if I could get a workaround with Bryan's suggestion.
>
> Thanks!
>
> Rubun
>
>
> -----Original Message-----
> From: Diane Holt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 4:24 PM
> To: Ant Users List
> Subject: Re: if task
>
>
> --- Rubun Tang <[EMAIL PROTECTED]> wrote:
> > Is there an "if" kind of statement in Ant?
> > I am trying to do something in ant only "if" something is equal to
> > something.
>
> Do you mean set to some specific value, or simply set to
> something (ie.,
> anything)?
>
> > The condition task doesn't fit very well.
>
> Care to elaborate?
>
> Diane
>
> =====
> ([EMAIL PROTECTED])
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - Send FREE e-cards for every occasion!
> http://greetings.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>