[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-user
Subject: Re: AW: Trouble deleting hidden files using ftp task
From: Jonas Kongslund <jonas () kongslund ! dk>
Date: 2004-11-24 22:10:16
Message-ID: 200411242310.17353.jonas () kongslund ! dk
[Download RAW message or body]
It turns out that the problem was not due to the ftp task but due to the ftp
server that I use. In its default configuration hidden files are not returned
when one issues a LIST or a NLST command to the ftp server. After changing
this default behavior the problem was solved.
In case anyone is interested, the ftp server that I use is ProFTPD. In order
to show hidden files the following must be added to /etc/proftpd.conf
<Global>
ListOptions "-a"
</Global>
Best regards
Jonas Kongslund
On Onsdag 24 november 2004 08:44, Jonas Kongslund wrote:
> Hi Jan
>
> Thank you for the suggestion but unfortunately it does not solve the
> problem. Any other suggestions?
>
> Jonas
>
> On Onsdag 24 november 2004 08:25, Jan.Materne@rzf.fin-nrw.de wrote:
> > 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:jonas@kongslund.dk]
> > > Gesendet am: Mittwoch, 24. November 2004 08:21
> > > An: user@ant.apache.org
> > > 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 <jonas@kongslund.dk> <http://www.kongslund.dk>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail: user-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic