ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lou Colon <lco...@edocs.com>
Subject toggling a property to control target execution
Date Wed, 23 May 2001 14:28:13 GMT
Is there a way to unset a property?
I am trying to use the conditional target execution based on a property.

 The problem is that once the property has been set (to any value) I have
not been able to return to the previously set state. For example,

<ant target="doSomething">
	<!- does nothing since prop is not set ->
</ant>
<ant target="doSomething">
	<property name="prop" value="anything"/>
	<!- executes doSomething since prop is set ->
</ant>
<ant target="doSomething">
	<!- executes doSomething since prop was already set
	     but I want to turn it off ->
</ant>

Thanks,
Lou




Mime
View raw message