ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Martin <yves.mar...@elca.ch>
Subject Re: Special character in file name
Date Tue, 07 Dec 2004 08:03:20 GMT
"Ming Fai" <mingfai@hongkong.com> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message