Doh, that'll teach me to run off a reply with concentrating.
In that case how about setting a property who name is based on the value of
another property.
eg <property name="Is.${os.name}" value="true"/>
where os.name property you are interested in.
You can then use if/unless testing if, for example, Is.Solaris is defined.
Matt
-----Original Message-----
From: Jon Skeet [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2001 14:16
To: [EMAIL PROTECTED]
Subject: RE: Conditional task execution
>> Is it possible to execute a task only if a property has a
>> specific value?
> You'll be wanting to read that very nice manual and look at
> the if/unless parameters to the target task.
... and then come back and say, "No, that doesn't actually do what I
asked."
if/unless specify whether or not to execute a task if a property is set
*at all*, not if a property has a specific value.
Jon
----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail
disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------