ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Davies <>
Subject RE: Deleting directories
Date Tue, 13 Feb 2001 19:05:30 GMT
That worked better! It deleted all of the files in all of the CVS
directories throughout the project. However, it left the empty CVS
directories in place. Is it possible to delete the CVS directories also? BTW
- Thanks for the great response on this question! I do learn alot from this

- Jeff

-----Original Message-----
From: Glenn McAllister []
Sent: Tuesday, February 13, 2001 10:52 AM
Subject: Re: Deleting directories

Brett Ramdeen wrote:

> Hehe, this one will work for sure:
> <target name="clean">
>         <delete dir="path_to_cvs" />
> </target>
> For example, on my machine the <delete> task is written as:
> <delete dir="/usr/home/bramdeen/cvs" />

This is not what he wants to do.  Use

  <fileset dir="base_dir" defaultexcludes="no">
    <include name="**/CVS/**" />

By default, there is a "**/CVS/**" excludes pattern associated with
every fileset (implicit or explicit).  To do anything with CVS
dirs/files, you need to use the "defaultexcludes" attribute to turn off
this automatic exclude.

Glenn McAllister

View raw message