ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: [delete] dir, delete all but one subdir
Date Thu, 09 Jun 2005 12:44:41 GMT
 
Hi,

<delete verbose="true" includeemptydirs="true">        
            <fileset dir="c:/test" defaultexcludes="no">
               <include name ="**/*"/> 
                <exclude name="**/jars"/>
            </fileset> 
         </delete>

works like it should.

But to be honest :

some files couldn't be deleted cause i had accessed them in 
an editor on my other machine (working with a switch).

What a shame - argh ;-)

Pleased accept my apologies !

Regards, Gilbert




-----Original Message-----
From: James Fuller [mailto:jim.fuller@ruminate.co.uk] 
Sent: Thursday, June 09, 2005 2:40 PM
To: Ant Users List
Subject: Re: [delete] dir, delete all but one subdir

Rebhan, Gilbert wrote:

> 
>Hi,
>
>OK then i moved defaultexcludes
>
> <delete verbose="true" includeemptydirs="true">        
>            <fileset dir="c:/test" defaultexcludes="no">
>               <include name ="**/*"/> 
>                <exclude name="jars"/>
>            </fileset> 
>         </delete>
>
>no DEPRECATED anymore, but there are still some dirs remaining
>that should be deleted.
>  
>

ok, if u are expecting all directories named jars to be deleted you need
to do <exclude name="**/jars"/>

gl, Jim Fuller


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


Mime
View raw message