You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2011/10/19 14:55:55 UTC
DO NOT REPLY [Bug 52058] New: delete feed by resourcelist does not
delete not empty directories
https://issues.apache.org/bugzilla/show_bug.cgi?id=52058
Bug #: 52058
Summary: delete feed by resourcelist does not delete not empty
directories
Product: Ant
Version: 1.8.2
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: andreas.daab@getit.de
Classification: Unclassified
The following code gets a file list to delete with resourcelist. Files from
file list will be deleted, but directories containing anything won't. Empty
directories in file list will be deleted.
<delete includeemptydirs="true" defaultexcludes="false">
<resourcelist>
<file file="${delete.file}" />
</resourcelist>
</delete>
Ant should behave like passing the directory by dir-attribute and delete
recursively.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52058] delete feed by resourcelist does not delete
not empty directories
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52058
--- Comment #2 from andreas.daab@getit.de 2011-10-31 08:19:09 UTC ---
And how do I delete directory trees with a file as source?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52058] delete feed by resourcelist does not delete
not empty directories
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52058
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version| |All
--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2011-10-28 15:05:37 UTC ---
from <delete>'s manual
> no attempt will be made to delete non-empty directories in any case
and a bit later it talks about the one case that is different from historic
reasons.
So not deleting the non-empty dirs is not a bug but rather the intended
behavior.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.