+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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to