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 20:38:15 GMT
I am sorry in my last message you should set includeEmptyDirs to false, this
way directory is not removed
<delete includeEmptyDirs="false">
 
 
"delete" command should remove the directory. If you want to rename the
files *.zip to *.bak in the same directory use "move" command
I am not clear if you want to delete empty backup directory or not.
boris
        

-----Original Message-----
From: O'Hara, Patrick [mailto:patrick.ohara@workscape.com]
Sent: Friday, June 22, 2001 3:21 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: Let's try this again


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 
patrick.ohara@workscape.com 


-----Original Message-----
From: O'Hara, Patrick [mailto:patrick.ohara@workscape.com]
Sent: Friday, June 22, 2001 3:14 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: Let's try this again


Thanks for replaying.  The empty backup directory is still deleted.
 
Patrick O'Hara 
262-408-3849 
patrick.ohara@workscape.com 


-----Original Message-----
From: babramo@uswest.com [mailto:babramo@uswest.com]
Sent: Friday, June 22, 2001 2:39 PM
To: ant-user@jakarta.apache.org
Subject: RE: Let's try this again


    
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