You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/06/08 08:36:54 UTC

[Bug 2067] New: - Delete Task is not quiet when "quiet" = true

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2067

*** shadow/2067	Thu Jun  7 23:36:54 2001
--- shadow/2067.tmp.17445	Thu Jun  7 23:36:54 2001
***************
*** 0 ****
--- 1,41 ----
+ +============================================================================+
+ | Delete Task is not quiet when "quiet" = true                               |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2067                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: kkuip@gti-group.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The Delete-task has a problem with the "quiet" attribute.
+ Ant reports a warning if a single file should be deleted and 
+ the file doesn't excist.
+ If the "quiet" attribute is "true" this should not be done ! (?)
+ So I changed  org.apache.tools.ant.taskdefs.Delete.java.
+ I changed :
+       if (file.exists()) {
+         ..... 
+       }
+       else {
+         log("Could not find file " + file.getAbsolutePath()
+             + " to delete.");
+       }
+ 
+ into :
+       if (file.exists()){
+         ..... 
+       }
+       else {
+         if(!quiet)
+         {
+           log("Could not find file " + file.getAbsolutePath()
+               + " to delete.");
+         }
+       }
\ No newline at end of file