ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vilya Harvey <>
Subject Re: Conditional if/unless echo
Date Thu, 10 Apr 2003 14:38:13 GMT
A while ago I made a modification to add if/unless to every task. I 
still think this is a useful thing to have. Would anyone else be 
interested in seeing it in Ant? If so, I'll update my code to match the 
current version in CVS and submit the changes. Let me know what you 
think, though.


David McTavish wrote:

>where do I vote to add it to Ant?
>D, can you maybe post your solution into the Bugzilla?  I think the
>if/unless mechanism may better follow the "interface" for ant tasks than my
>implementation. I think this would be a great add to Ant, and the cost is so
>marginal (ie: 5 lines of code?). So long as the default behaviour is echo, I
>can't comprehend why this wouldn't be a good addition.
>-----Original Message-----
>From: Dominique Devienne []
>Sent: Thursday, April 10, 2003 10:19 AM
>To: 'Ant Users List'
>Subject: RE: Conditional if/unless echo
>The level attribute is not that useful... Most of the time, we want to debug
>or be more verbose about our own build logic, for the purpose of build users
>to see, not build writer. Thus, getting all the Ant verbose or debug output
>is not suitable, since drowns the important build-writer-specified
>information. This is why <echo> should have an if/unless attribute (I'd even
>add a ifTrue attribute, like I demonstrated with my <echopath> task).
>This is so simple and useful, I just don't get why people pushed back on it
>several time before... --DD

Vilya Harvey, Consultant                 / digital steps /
(W) +44 (0)1483 469 480                                      
(M) +44 (0)7816 678 457       


This e-mail and any attachments may be confidential and/or legally
privileged. If you have received this email and you are not a named
addressee, please inform the sender at Digital Steps Ltd by phone on
+44 (0)1483 469 480 or by reply email and then delete the email from
your system. If you are not a named addressee you must not use,
disclose, distribute, copy, print or rely on this email. Although
Digital Steps Ltd routinely screens for viruses, addressees should
check this email and any attachments for viruses. Digital Steps Ltd
makes no representation or warranty as to the absence of viruses in this
email or any attachments.

View raw message