Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 6627 invoked by uid 500); 22 Jun 2001 20:38:02 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 6618 invoked from network); 22 Jun 2001 20:38:01 -0000 Message-ID: From: babramo@uswest.com To: ant-user@jakarta.apache.org Subject: RE: Let's try this again Date: Fri, 22 Jun 2001 15:38:15 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0FB5B.433E5C90" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0FB5B.433E5C90 Content-Type: text/plain; charset="iso-8859-1" I am sorry in my last message you should set includeEmptyDirs to false, this way directory is not removed "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 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 <> ------_=_NextPart_001_01C0FB5B.433E5C90 Content-Type: text/html; charset="iso-8859-1" Let's try this again
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>>

------_=_NextPart_001_01C0FB5B.433E5C90--