ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject Re: Only deleting an empty directory (-tree)
Date Fri, 27 May 2005 02:35:33 GMT
Do you know about selectors? <delete> with a fileset with appropriate
selectors should be able to do the job. Note though that it probably
does do a depth-first recursion, so won't remove dirs who become empty
because the empty dirs they contained were removed. <sync> contains
code to do just that, but it's not exposed as a task. Maybe <sync
dir="foo" todir="foo" includeEmptyDirs="false" /> would have this side
effect, although I'd think there would be a safeguard against
self-sync. --DD

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message