PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

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

*** shadow/3297 Tue Aug 28 01:11:14 2001
--- shadow/3297.tmp.6253        Tue Aug 28 01:11:14 2001
***************
*** 0 ****
--- 1,39 ----
+ +============================================================================+
+ | bug in delete task (cascaded)                                              |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3297                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.4Beta2                |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                   |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Please consider the following example:
+ 
+ <project name="test" basedir="." default="compile">
+ 
+       <target name="clean">
+               <delete includeEmptyDirs="true">
+                       <fileset dir="build"/>
+               </delete>
+       </target>
+ 
+       <target name="prepare">
+               <mkdir dir="build/a/b"/>
+               <echo message="hello" file="build/file"/>
+               <echo message="hello" file="build/a/file"/>
+               <echo message="hello" file="build/a/b/file"/>
+       </target>
+ 
+ </project>
+ 
+ First, do an "ant prepare" and look at the created structure.
+ Then, do an "ant clean" and watch ant deleting one directory too much.
+ According to the documentation of the delete task, the "build" directory 
should 
+ remain (see last example).

Reply via email to