ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helliwell, Matthew" <>
Subject RE: Conditional task execution
Date Wed, 13 Jun 2001 13:28:20 GMT
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.${}" value="true"/>

where property you are interested in.

You can then use if/unless testing if, for example, Is.Solaris is defined.


-----Original Message-----
From: Jon Skeet []
Sent: 13 June 2001 14:16
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

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.


If you have received this e-mail in error or wish to read our e-mail 
disclaimer statement and monitoring policy, please refer to or contact the sender.

View raw message