ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Property Checking In Build File
Date Tue, 07 Nov 2000 11:43:54 GMT
>>>>> "GR" == G Ramasubramani <> writes:

 GR>         If I do <target name="something" if="propertyname"> then
 GR> the target does not get executed but the user also does not get
 GR> to know about this.

Use <target name="cantDoSomething" unless="propertyname"> with a
<fail> task inside as well as 
<target name="phony" depends="something,cantDoSomething" />
and make "phony" your build target.


View raw message