Works. Cool. Thanks.
-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com]
Sent: Wednesday, June 01, 2005 11:11 AM
To: Ant Users List
Subject: RE: Delete dir if empty
--- "Dick, Brian E." <Brian.Dick@FMR.com> wrote:
> Nope. That deletes files. I don't want to delete
> files. I only want to
> delete empty directories.
Trick:
<delete includeemptydirs="true">
<fileset dir="onlyifempty" excludes="**/*" />
</delete>
-Matt
>
> -----Original Message-----
> From: j&h systems [mailto:jhsystems@gmail.com]
> Sent: Wednesday, June 01, 2005 10:46 AM
> To: Ant Users List
> Subject: Re: Delete dir if empty
>
>
> What about include "includeemptydirs" in your delete
> task, like the
> following example?
>
> <delete includeemptydirs="true">
> </delete>
>
> Jian
>
> On 6/1/05, Dick, Brian E. <Brian.Dick@fmr.com>
> wrote:
> > How can I delete a directory only when it is
> empty? I have tried many
> > combinations of include/exclude with the delete
> task, but cannot find
> > anything that works in all cases.
> >
> > Later,
> > BEDick
> >
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
>
---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|