I forgot to mention that I have other things in 'parent_of_dirname-*' that I
would like to keep. Shure I can do the <exec /> but is there a more elegant
way to just remove directories in a: 'rm -rf <regexp>' fashion?

cheers!

Ivan Bilenjkij


-----Original Message-----
From: Jason Rogers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 2:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How do I remove multiple directories?


I think you could do the following:

<delete includeEmptyDirs="true" >
   <fileset dir="parent_of_dirname-*" />
</delete>

If that doesn't work, do an <exec/> on the *nix command.

-Jason

    > -----Original Message-----
    > From: Ivan Bilenjkij [mailto:[EMAIL PROTECTED]]
    > Sent: Thursday, August 09, 2001 1:52 PM
    > To: [EMAIL PROTECTED]
    > Subject: How do I remove multiple directories?
    >
    >
    > Hello,
    >
    > I have a group of directories with names like:
    > dirname-0001, dirname-0002,
    > etc. that I would like to remove, regardles whether
    > they're empty or not. On
    > *nix box I would just type rm -rf dirname-* but if I try
    > to do this with
    > ant, like: <delete file="dirname-*" /> nothing happens.
    > Does anybody know
    > how do I do this?
    >
    >
    > Thanx
    >
    >
    >

Reply via email to