I have a situation where I have directories like this:
base:
HR1:
HR2:
HR3:
X1:
X2:
file1.txt
file2.txt
I want to delete all directory trees except base/X* and *.txt so that I
end up with:
base:
X1:
X2:
file1.txt
file2.txt
I've tried:
Gary Lawson [mailto:[EMAIL PROTECTED]] wrote:
> I am simply trying to delete the contents (files and
> sub-directories) of a
> number of directories.
> ant appears to be ignoring the contents of my target.
Works for me.
I copied your target, defined the properties, and it did what I expected.
0
To: [EMAIL PROTECTED]
Subject: Deleting directories
Firstly, apologies for what (I hope) is a simple question.
I am simply trying to delete the contents (files and sub-directories) of a
number of directories.
ant appears to be ignoring the contents of my
Firstly, apologies for what (I hope) is a simple question.
I am simply trying to delete the contents (files and sub-directories) of a
number of directories.
ant appears to be ignoring the contents of my target.
The code is as follows:
question I did learn more about
filesets, and I'm pretty happy about that.
Thanks to everyone that commented on my question!
- Jeff
-Original Message-
From: Rick Szeto [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 11:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Deleting
ssible to delete the CVS directories also? BTW
> - Thanks for the great response on this question! I do learn alot from this
> list.
>
> - Jeff
>
> -Original Message-
> From: Glenn McAllister [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 10:52 AM
.
- Jeff
-Original Message-
From: Glenn McAllister [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Deleting directories
Brett Ramdeen wrote:
> Hehe, this one will work for sure:
>
>
>
>
>
> For example, on
Brett Ramdeen wrote:
> Hehe, this one will work for sure:
>
>
>
>
>
> For example, on my machine the task is written as:
>
>
This is not what he wants to do. Use
By default, there is a "**/CVS/**" excludes pattern associated with
every fileset (i
Title: RE: Deleting directories
Hehe, this one will work for sure:
For example, on my machine the task is written as:
>> -Original Message-
>> From: Jeff Davies [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, February 13, 2001 1:22 PM
>&g
ssage-
From: Brett Ramdeen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 10:09 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Deleting directories
>>>>
>>
>>
The 'dir' attribute should specify the base directory th
Title: RE: Deleting directories
>>>>
>>
>>
The 'dir' attribute should specify the base directory that you want to delete. It should not contain any patterns.
Change your delete task to this:
Brett
Hi all,
I'm trying to delete all of the CVS directories in a project. I'm using
the following target to get the job done, but its not working:
Deleting all CVS directories in the project. I hope you know
what you are doing!
Any idea what I'm doing wr
12 matches
Mail list logo