I think I'm still missing something.
what would the following transalte to: if="danceTypeIsSetToFunkyChicken"
Is that really saying if (property != null) ????? If so we really need: if
(property == "someCrazyValue").
I could not find the <condition> tag in the docs from the Jakarta site
either???
Also how might we pull the OS type? I need to change behavior based off of
whether or not I'm running on NT vs Unix.
Thanks,
Cory
-----Original Message-----
From: J. Matthew Pryor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 9:07 PM
To: [EMAIL PROTECTED]
Subject: RE: Using IF
Unless I missed it, I can't find an example of it in the documentation for
1.4, but I think the <equals> element of <condition> is what you want
Something like :
<condition property="danceTypeIsSetToFunkyChicken">
<equals arg1="${danceType}" arg2="FunkyChicken"/>
</condition>
<target name="doTheFunkyChicken if="danceTypeIsSetToFunkyChicken">
<doTheFunkyChicken/>
</target>
I haven't tested it yet, but I will
jmp
> -----Original Message-----
> From: Diane Holt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 5:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Using IF
>
>
> --- Cory Adams <[EMAIL PROTECTED]> wrote:
> > Could somebody please help me with regard to using if statments in Ant?
>
> As of release 1.4, you can use the <condition> task to test the value of a
> property (see the doc for examples). The if/unless attributes of <target>
> are only for testing whether a property is set/not-set.
>
> Diane
>
> =====
> ([EMAIL PROTECTED])
>
>
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/