All targets have a "if" or "unless" attribute that can point to a property.
But it wont check for a specific value of the property, it will just check
if the property is set.
Example:
....
<target name="help" if="missing.properties">
<echo>Not all properties are set.</echo>
</target>
....
The above example will only execute if the property "missing.properties" has
been set before the target is executed, otherwise it will be skipped. You
may want to look at the <condition> task for info on how to set properties
conditionally.
Ylan Segal.
> -----Mensaje original-----
> De: Glen Marchesani [mailto:[EMAIL PROTECTED]]
> Enviado el: Viernes, 10 de Mayo de 2002 02:13 p.m.
> Para: [EMAIL PROTECTED]
> Asunto: conditionally run a task
>
>
> A newbie question,
> Is there a way to run a task say if property foo="on"?
>
> thanks,
> Glen
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>