ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.fr>
Subject Re: Deleting dirs + files but keeping some files ?
Date Sat, 24 Feb 2001 16:35:57 GMT
Thanks. it worked ... Actually my solution was also maybe working ... But
when I tried it, I made the mistake of copying a directory which a CVS
subdirectory in it and I think that the CVS directory is treated in a
special manner by delete and thus my directory was not erased ...

Vincent.

----- Original Message -----
From: "Nico Seessle" <nico@apache.org>
To: <ant-user@jakarta.apache.org>
Sent: Saturday, February 24, 2001 4:46 PM
Subject: Re: Deleting dirs + files but keeping some files ?


> ----- Original Message -----
> From: "Vincent Massol" <vmassol@octo.fr>
> To: <ant-user@jakarta.apache.org>
> Sent: Saturday, February 24, 2001 3:49 PM
> Subject: Deleting dirs + files but keeping some files ?
>
>
> > I'd like to delete all the files and subdirectories under the work/
> > directory except the .keepit file. Is it possible with the delete task ?
> > I have tried several combinations with no success, the best one I have
> found
> > is :
> >
> >         <delete includeEmptyDirs="on">
> >             <fileset dir="." excludes=".keepit">
> >                 <include name="${misc.dir}/jbuilder/**/work/**"/>
> >             </fileset>
> >         </delete>
> >
>
> Have you also tried something like
>
>          <delete includeEmptyDirs="on">
>              <fileset dir=".">
>                  <include name="${misc.dir}/jbuilder/**/work/**"/>
>                  <exclude name="**/.keepit"/>
>              </fileset>
>          </delete>
>
> Nico
>
>
>


Mime
View raw message