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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]