ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rubun Tang <rt...@algorithmics.com>
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
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>

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