ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mattias Brandstrom <>
Subject Re: Problem to set property with refid
Date Thu, 03 Jun 2004 07:18:34 GMT 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:
For additional commands, e-mail:

View raw message