Bug 42787

Summary: Relax restricion on quiet and failonerror attributes both set to 'true' with 'delete' task
Product: Ant Reporter: Max Gilead <max.gilead>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: minor    
Priority: P2    
Version: 1.7.0   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Max Gilead 2007-07-01 13:58:45 UTC
When user tries to set both quiet and failonerror attributes to 'true' with
'delete' task Ant reports an error:

"quiet and failonerror cannot both be set to true"

While I may not know some important reason for this for a mere user it looks
like unnecessary restriction. Failonerror, as the doc says "Controls whether an
error (such as a failure to delete a file) stops the build or is merely reported
to the screen." I believe that when used with quiet attribute set to 'true' Ant
should report an error on failure or don't display anything on success. Simple
and intuitive :)

I have a pretty long build script which displays a LOT of standard messages and
I'm implementing 'quiet' switch for it. With current Ant behavior I won't be
able to silence output of 'delete' tasks.
Comment 1 Nicolas Lalevée 2011-07-24 11:47:36 UTC
The logs you are trying to "quiet" are not actually error logs right ? They are the logs about "Deleting: /path/myfile.txt" etc... right ?
Today quiet is meant to quiet the error log. So just removing the restriction on setting both quiet and failonerror won't solve your issue. What you need is either change the semantic of the existing quiet which would break backward compatibility or just a new attribute.