ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "O'Hara, Patrick" <>
Subject RE: Let's try this again
Date Fri, 22 Jun 2001 20:14:18 GMT
Thanks for replaying.  The empty backup directory is still deleted.
Patrick O'Hara 

-----Original Message-----
From: []
Sent: Friday, June 22, 2001 2:39 PM
Subject: RE: Let's try this again

try this
  <patternset id="bak.files">
    <include name="**/*.bak"/>
<delete includeEmptyDirs="true">
        <fileset dir="your root directory">
            <patternset refid="bak.files"/>

-----Original Message-----
From: O'Hara, Patrick []
Sent: Friday, June 22, 2001 1:00 PM
To: Ant User Mailing List (E-mail)
Subject: Let's try this again

I 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-3840 Fax 
<<O'Hara, Patrick.vcf>> 

View raw message