ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit P" <rohitmp....@gmail.com>
Subject Re: Under a parent directory delete only 4 out of 6 child directories [non-empty]
Date Tue, 04 Nov 2008 10:08:46 GMT
Thanks Gilbert.
I could use your solution and achieve the logic i was looking for.

Thanks A Ton
Rohit

On Tue, Nov 4, 2008 at 2:00 PM, Rebhan, Gilbert <
Gilbert.Rebhan@huk-coburg.de> wrote:

>
> -----Original Message-----
> From: Rohit P [mailto:rohitmp.for@gmail.com]
> Sent: Tuesday, November 04, 2008 5:42 AM
> To: Ant Users List
> Subject: Re: Under a parent directory delete only 4 out of 6 child
> directories [non-empty]
>
> /*
> Actually i would like to delete the child directories by using only once
> parent directory. Something similar to deleting set of only .java files
> under sub-directories.
> Hence i considered task like <fileset>, instead of directly deleting the
> child directories one after the other.
> */
>
> use a pattern for the directories that should get deleted, something like =
>
> <delete includeemptydirs="true" verbose="true">
>  <fileset dir="/your/root/dir" defaultexcludes="false">
>  <include name="**/yourpattern/**" />
>  </fileset>
> </delete>
>
> Regards, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message