ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 2067] New: - Delete Task is not quiet when "quiet" = true
Date Fri, 08 Jun 2001 06:36:54 GMT
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

Mime
View raw message