ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: [delete] dir, delete all but one subdir
Date Thu, 09 Jun 2005 12:14:24 GMT


i've tried with =

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

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

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 [] 
Sent: Thursday, June 09, 2005 12:30 PM
To: Ant Users List
Subject: Re: [delete] dir, delete all but one subdir

Rebhan, Gilbert wrote:

>i want to delete all subdirs but one dir should remain.
>for example :
>     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:
For additional commands, e-mail:

View raw message