ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Campbell <>
Subject FTP task incredibly slow when listing files
Date Wed, 09 Feb 2011 23:52:50 GMT
Apologies if I¹m in the wrong place... I¹ve tried searching and none of the
results I¹ve come up with are even close to my problem.

I am using the ftp task to pull down a list of files on an ftp server, my
task looks like this:
<ftp server=²foo² user=²foo² password=²foo² remotedir=²/base/dailybuild²
action=²list² listing=²sqlList²>
<fileset><include name="*/updates/*.sql"/></fileset>

It appears (though I have not verified through packet analysis) that it is
first getting a folder listing for one of the */updates folders, then it is
doing an individual file listing on each file in the list that matches
*.sql. The result, since I have approximately 1300 files of type sql, is
that the task is taking 5-10 minutes to complete.
If I do the same operation using the basic ftp program on the machine, it
takes 30 seconds with me manually typing the commands.

Is there something I can do to tell it to just grab the file list without
iterating through each file? Should I just inline a perl FTP call to do

Thanks all!

Read Every Day.
Lead a Better Life.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message