ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From babr...@uswest.com
Subject RE: Let's try this again
Date Fri, 22 Jun 2001 19:38:34 GMT
    
try this
 
  <patternset id="bak.files">
    <include name="**/*.bak"/>
  </patternset>
 
<delete includeEmptyDirs="true">
        <fileset dir="your root directory">
            <patternset refid="bak.files"/>
        </fileset>
 </delete>
 
 
boris

-----Original Message-----
From: O'Hara, Patrick [mailto:patrick.ohara@workscape.com]
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-3849 
262-408-3840 Fax 
patrick.ohara@workscape.com 
<<O'Hara, Patrick.vcf>> 


Mime
View raw message