ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Deleteing directories
Date Mon, 12 Jan 2004 10:59:24 GMT
On Fri, 9 Jan 2004, Don Kichline <Don.Kichline@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


Mime
View raw message