You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Kichline, Don (EM, PTL)" <Do...@penske.com> on 2004/01/09 19:28:45 UTC
Deleteing directories
I am looking to delete all directories under a certain directory (call it
root), but I do not want to delete any of the files in this root directory.
Thanks,
Don Kichline
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Deleteing directories
Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 9 Jan 2004, Don Kichline <Do...@penske.com> wrote:
> I am looking to delete all directories under a certain directory
> (call it root), but I do not want to delete any of the files in this
> root directory.
Use selectors:
<delete includeemptydirs="true">
<fileset dir="root">
<or>
<filename name="*" negate="true"/>
<type type="dir"/>
</or>
</fileset>
</delete>
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org