Sorry that I have overlooked that part in the document. It works perfectly. Thank you!
Regards, mingfai > -----Original Message----- > From: Yves Martin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 07, 2004 4:03 PM > To: Ant Users List > Subject: Re: Special character in file name > > > "Ming Fai" <[EMAIL PROTECTED]> writes: > > > Hi, > > > > I want to use ANT to clean up a directory with some files > named like > > "xxxxxxxx.yyy~", i.e. with '~' character in the file extension. I > > tried a few ways including the following method but no success: > > <delete> > > <fileset dir="${proj.dir}" includes="**/*.*~"/> > > </delete> > > > > What should I specify as includes value? Thx. > > You should look in documentation of "FileSet". Section > "default excludes". The pattern "**/*~" is included in > default excludes, that's why your fileset is empty. So you > have to set the attribute > defaultexcludes="no" > in your fileset element. > > Regards, > -- > Yves Martin > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
