http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1751
*** shadow/1751 Mon May 14 18:55:24 2001
--- shadow/1751.tmp.21590 Mon May 14 18:55:24 2001
***************
*** 0 ****
--- 1,51 ----
+ +============================================================================+
+ | delete task with includeEmptyDirs="true" fails if directory does not exist |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1751 Product: Ant |
+ | Status: NEW Version: 1.3 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: |
+ | Priority: Component: Core tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: [EMAIL PROTECTED] |
+ | Reported By: [EMAIL PROTECTED] |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ The delete task fails if the target directory does not exists when using
+ filesets, which makes it a pain to write "clean" type of tasks. My task:
+
+ <target
+ name="clean.ais.core.work">
+
+ <delete includeEmptyDirs="true" >
+ <fileset dir="${ais.core.work}"/>
+ </delete>
+
+ </target>
+
+ Where ais.core.work = "C:\build\workspace\aiscore" on my PC.
+ The "c:\build" directory exists and contains only one subdir called "lib".
+ The "workspace\aiscore" subdirs do *not* exists.
+
+ My output:
+ >ant build.ais.core
+ Buildfile: build.xml
+
+ timestamps:
+
+ prepare:
+
+ clean.ais.core.work:
+
+ BUILD FAILED
+
+ C:\WBDevIm\ReposWrk\Build\build.xml:592: C:\build\workspace\aiscore not found.
+
+ Total time: 2 seconds
+ 18:27:14 C:\WBDevIm\ReposWrk\Build
+
+ I do not care if a dir does not exists in this case, I am not sure if I ever
+ would or if this warrants a "fail" attribute to specify this behavior.