The dot is a special case. Try that
  <fileset>
      <include name="**"/>
      <include name="**/.*"/>
  </fileset>

Usually the dot is used for separating the filename from its suffix. So the
* does not catch that.

See also
http://wiki.apache.org/ant/AntOddities "2. <fileset>'s strange behaviour"


Jan

> -----Ursprüngliche Nachricht-----
> Von: Jonas Kongslund [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 24. November 2004 08:21
> An: [EMAIL PROTECTED]
> Betreff: Trouble deleting hidden files using ftp task
> 
> Hi
> 
> Has anyone been able to delete hidden files (files starting 
> with a dot), using 
> the ftp task?
> 
> The following example
> 
>   <ftp action="del" server=.. userid=.. password=.. remotedir="www">
>     <fileset>
>       <include name="**"/>
>     </fileset>
>   </ftp>
> 
> removes everything in the www folder except the hidden files. This is 
> unfortunate since I also would like to remove all .htaccess files.
> 
> I'm using Ant 1.6.1 together with commons-net-1.2.2.jar and 
> jakarta-oro-2.0.8.jar
> 
> Best regards
> -- 
> Jonas Kongslund   <[EMAIL PROTECTED]>   <http://www.kongslund.dk>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to