ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40972] New: - Directory Deletion Dont Work Properly
Date Tue, 14 Nov 2006 22:26:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40972>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40972

           Summary: Directory Deletion Dont Work Properly
           Product: Ant
           Version: 1.7.0RC1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: tytios@googlemail.com


Different behaviour of the delete task in 1.6.5 and 1.7.0RC1. If the delete task 
should delete more than one directory and at least one directory does not exist
then Ant 1.7.0RC1 will not delete any directory. The task will finished
succesfully without any message. Ant 1.6.5 will delete all the directories as
expected.

Here an example:

<target name="demo">
   <delete quiet="true" includeEmptyDirs="true">
      <fileset dir="dir_doesnot_exists"/>
   </delete>
   
   <delete quiet="true" includeEmptyDirs="true">
      <fileset dir="dir_exists"/>
   </delete>
   
   <mkdir dir="dir_exists/blah"/>
   
   <delete quiet="true" includeEmptyDirs="true">
      <fileset dir="dir_exists"/>
      <fileset dir="dir_doesnot_exists"/>
   </delete>      
   

   <available file="dir_exists" type="dir" property="delete.dir.failed"/>
   <fail message="Failed to delete directory" if="delete.dir.failed"/>   
   
</target>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message