ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mattias Brandstrom <bra...@taglab.com>
Subject Re: Problem to set property with refid
Date Thu, 03 Jun 2004 07:18:34 GMT
vinod.nayak@iflexsolutions.com wrote:
> Hi All,
> 
> How to test whether any required property not set.
> 
> For example, if property A is set to any value, I would like execute target_A else target_B
should be executed.
> 
> Thanks N Regards,
> Vinod.
> 

I think that something like this might work:

<target name="target_A" if="A"/>

<target name="target_B" unless="A"/>

<target name="foo" depends="target_A, target_B"/>

When target foo is executed it would also execute the contents of 
target_A or target_B depending on wheter the property A is set or not.

:.:: mattias

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message