ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Property Checking In Build File
Date Tue, 07 Nov 2000 11:43:54 GMT
>>>>> "GR" == G Ramasubramani <grama@aztec.soft.net> 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.

Stefan

Mime
View raw message