Re: Recursive delete in ANT
From: Oscar kind (oscar_at_danwa.net)
Date: 06/11/04
- Previous message: huriap: "Re: Skyway Builder Rocks! I'm building J2EE apps without writing code...."
- In reply to: dreamzzz: "Re: Recursive delete in ANT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 11 Jun 2004 23:58:28 +0200
dreamzzz <dreamzzz04@hotmail.com> wrote:
> "Tony Morris" <dibblego@optusnet.com.au> wrote in message news:<ca8ttv$gnm$1@news.btv.ibm.com>...
>> "dreamzzz" <dreamzzz04@hotmail.com> wrote in message
>> news:3d9975f2.0406092034.2621237@posting.google.com...
>> > Is it possible to recursively delete all dirs and sub-dirs in a tree
>> > structure?
>> > I am trying to use the Fileset and delete all the directories along
>> > with their contents. But it just deletes the contents of the dirs at
>> > the lowest level and not the entire Dir structure.
>>
>> <delete dir="thedirectory"/>
>
> I tried the above technique. But it doesnt solve my problem.
> Actually I have a dir tree and i need to delete specific dirs in that
> dir. These dirs can have sub or sub-sub dirs. Thats why i am using
> fileset with Includes clause. But this just removes the contents at
> the lowest level and not the entire dir structure specified.
You may want to look at dirset. It does the same as a fileset, but with
directories. IIRC, it also works with the delete task.
kind regards,
Oscar
-- Oscar Kind http://home.hccnet.nl/okind/ Software Developer for contact information, see website PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2
- Previous message: huriap: "Re: Skyway Builder Rocks! I'm building J2EE apps without writing code...."
- In reply to: dreamzzz: "Re: Recursive delete in ANT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|