ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zanabria, Moises" <Moises_Zanab...@bmc.com>
Subject RE: condition in 1.3
Date Thu, 06 Sep 2001 02:48:48 GMT
Thanks Master, Diane, Judy .. everyone :).
Actually I'm new in ant stuff, so the reason that I asked this incoherent
question :)  is because I can't upgrade my ant 1.3 to ant 1.4 for now!!, and
I made a build.xml with different targets names, i.e. release build, daily
build or default build , I call my ant script with:

ant -Dtag="%TAG%" 

The target name depend on $TAG value, so I would like to compare the $TAG
value with tag values in my build.xml.

I don't know if I was clear ???

Diane could you please more extensive in this part, I'll really appreciate.

>>you could try seeing whether it relies on anything else that's changed,
and if doesn't, you could just pick it up and add it to your 1.3.

Thanks Moises.



-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Wednesday, September 05, 2001 5:14 PM
To: ant-user@jakarta.apache.org
Subject: RE: condition in 1.3


--- "Zanabria, Moises" <Moises_Zanabria@bmc.com> wrote:
> Thanks Judy, it works, but I was wondering if is possible to do the
> following in ant 1.3
> 
> <target name="clean" if="${tag}=${arg}">

Nope. (Well, not that it's not possible -- just that it's not offered...
and not that some of us didn't campaign to try and get it :)

If you can't upgrade to 1.4, which has the new <condition> task, you could
try seeing whether it relies on anything else that's changed, and if
doesn't, you could just pick it up and add it to your 1.3.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Mime
View raw message