> > Arnout has started a thread about consolidating tasks some days > ago. One of his proposals (and I'm all for it) was to merge delete and > deltree into a single delete task. > > I've chosen to modify deltree for now as this one already implied > recursion while delete say "deletes on file". > > I'm not sure whether we had come to an agreement about the names of > the attributes that were needed. > > Do we keep different attributes for deleting files and dirs, i.e. > <delete file="name" /> with no includes or excludes allowed and > <delete dir="name" /> with all the MatchingTask stuff in place? I > think we should do so to avoid accidents. >
I was the proponent of using just "src" instead of "file" or "dir", but it seems everyone feels safer the way your proposing. I'll go along with that ... > Should we set defaultexcludes to false by default when deleting a > directory tree - my opinion is yes. > Yes. > Do we need a recurse attribute (don't think so, if you specify a dir, > you obviously want to delete it)? > No. > Do we need a purge attribute to delete empty dirs - I'm not decided on > this? > I don't understand, the delete dir="blah" would remove it whether it is empty or not, right? -j
