ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rubun Tang <>
Subject RE: if task
Date Wed, 27 Feb 2002 21:36:10 GMT
Sorry for not making myself clear, this is the pseudocode of what I want to

<target name="test">

	<if ${final.test.result.failed}="true">
		<fail message="test failed"/>

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.



-----Original Message-----
From: Diane Holt []
Sent: Wednesday, February 27, 2002 4:24 PM
To: Ant Users List
Subject: Re: if task

--- Rubun Tang <> 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.,

> The condition task doesn't fit very well.

Care to elaborate?



Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message