ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Reddy <prash...@pramati.com>
Subject Re: Feature request: ifbool/unlessbool
Date Thu, 24 Sep 2009 08:52:33 GMT
+1 to this feature request.

I am curious to know. why if and unless attributes in 'target' work the 
way they do, i.e only check existence of the property and not its value.

Currently ant-contrib's if tag has to be used to accomplish this sort of 
control over build execution.

-Prashant

On 9/24/2009 2:00 PM, Francis GALIEGUE wrote:
> Hello list,
>
> I have quite a huge build system based on ant and I govern some of its
> behaviour using properties, or the lack of it thereof.
>
> But ideally, I'd like to use these properties all the time, with
> boolean values. Say, for example, if I have nomail set to 1 or true,
> then no mail is sent; if it's 0 or false, then the mail is sent. And
> the target would then read:
>
> <target name="junit-send-report" unlessbool="nomail"/>
>
> Comments?
>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message