I was
incorrect, I though delete was deleting the directory, actually move is deleting
the directory. So, new question. I want to rename all *.zip files in
a directory to *.bak.
Patrick O'Hara
262-408-3849
[EMAIL PROTECTED]
-----Original Message-----
From: O'Hara, Patrick [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 3:14 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Let's try this again
From: O'Hara, Patrick [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 3:14 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Let's try this again
Thanks
for replaying. The empty backup directory is still
deleted.
Patrick O'Hara
262-408-3849
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 2:39 PM
To: [EMAIL PROTECTED]
Subject: RE: Let's try this again
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 2:39 PM
To: [EMAIL PROTECTED]
Subject: RE: Let's try this again
try
this
<patternset id="bak.files">
<include name="**/*.bak"/>
</patternset>
<include name="**/*.bak"/>
</patternset>
<delete
includeEmptyDirs="true">
<fileset dir="your root directory">
<patternset refid="bak.files"/>
</fileset>
</delete>
<fileset dir="your root directory">
<patternset refid="bak.files"/>
</fileset>
</delete>
boris
-----Original Message-----
From: O'Hara, Patrick [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 1:00 PM
To: Ant User Mailing List (E-mail)
Subject: Let's try this againI want a task to delete all files in a subdirectory that have a bak extension. The directory may or may not have files in it. I find that the delete task will delete the directory if there are no files in it. Can I turn this behavior off? Is it a bug?
Patrick O'Hara
Workscape, Inc
N17 W24222 Riverwood Pl
Waukesha, WI 53188-1162
262-408-3849
262-408-3840 Fax
[EMAIL PROTECTED]
<<O'Hara, Patrick.vcf>>
