ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hunter, Bryan" <Bryan.Hun...@OmniChoice.com>
Subject RE: if task
Date Wed, 27 Feb 2002 21:51:26 GMT
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:rtang@algorithmics.com]
> 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:holtdl@yahoo.com]
> Sent: Wednesday, February 27, 2002 4:24 PM
> To: Ant Users List
> Subject: Re: if task
> 
> 
> --- Rubun Tang <rtang@algorithmics.com> 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
> 
> =====
> (holtdl@yahoo.com)
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - Send FREE e-cards for every occasion!
> http://greetings.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

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


Mime
View raw message