Bug 52058 - delete feed by resourcelist does not delete not empty directories
Summary: delete feed by resourcelist does not delete not empty directories
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.8.2
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 12:55 UTC by andreas.daab
Modified: 2011-10-31 08:19 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andreas.daab 2011-10-19 12:55:55 UTC
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.
Comment 1 Stefan Bodewig 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.
Comment 2 andreas.daab 2011-10-31 08:19:09 UTC
And how do I delete directory trees with a file as source?