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:14:24 GMT

Hi,

i've tried with =

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

[delete] DEPRECATED - Use of the implicit FileSet is deprecated.  Use a 
nested fileset element instead.

BUILD SUCCESSFUL
Total time: 1 second


But i'm using a nested fileset and few directories with CVS folders in
it still remain ?! 

What's the correct syntax ??

Regards, Gilbert

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

Rebhan, Gilbert wrote:

>Hi,
>
>i want to delete all subdirs but one dir should remain.
>
>for example :
>
>test
>     sub1
>     sub2
>     jars
>
>i want delete sub1 and sub2 but /jars should stay
>  
>

use <include/> and <exclude/> nested elements to define which dirs
should stay and which should be deleted using the  <delete/> Task

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