ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Delete Directory Matching A Pattern
Date Wed, 18 Oct 2006 21:55:41 GMT
--- "Sean (Xuong) Phu" <dreamywind@yahoo.com> wrote:

> Is there a way to delete a set of directories and
> subdirectories matching a pattern?
> For example, I want to delete "blah1234" and
> "blahabcdefg" since they both begins with "blah".
> 
> I tried to use the following to delete any directory
> named with "blah*", but it didn't work.
>         <delete includeEmptyDirs="true">
>             <fileset dir=".\**\blah*">
>                 <include name="**\*" />
>             </fileset>
>         </delete>

Try:

<delete includeEmptyDirs="true">
  <!-- assuming the norm, that basedir=".", you could
use ${basedir} -->
  <fileset dir="." includes="**/blah*/**" />
</delete>

-Matt

> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message