You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/12/14 04:45:36 UTC
DO NOT REPLY [Bug 37897] New: -
ftp task very slow when depends=yes
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37897>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37897
Summary: ftp task very slow when depends=yes
Product: Ant
Version: 1.6.5
Platform: All
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Optional Tasks
AssignedTo: dev@ant.apache.org
ReportedBy: e17x-o9j5@spamex.com
I am using <ftp> with depends=yes to transfer only changed files from my
development machine to my server. Both machines are on a local 100MB network.
Both machines are pretty fast. One is a windows XP P4 3.0 Ghz 2GB mem and
the other is a Solaris 9 2 cpu 4GB mem machine.
In the example below, I have 225 files in web/html/jsp.
If I modify a single file, and then run this ant task, it takes
52 seconds to complete the operation. The file transfer of that
one file takes less than 1 second if I do it manually using ftp
command in the command shell. So, I assume the rest of the time
is spent checking the timestamps of the files on the server side.
I am guessing tha the <ftp> is making individual requests for each
file to check it's timestamp on the server side?
Is there anyway this could be condensed into a single call?
If I run ftp manually in the command shell, If I do "dir" it will
print out all the files with their timestamps.
Why can't <ftp> do something similar?
I was expecting this operation to take about 2 seconds instead of
the 52 seconds it is currently taking.
<ftp server="${SERVER_NAME}"
userid="${SERVER_USER}" password="${SERVER_PASSWORD}"
remotedir="/usr/pronto/web/html/jsp"
depends="yes"
verbose="yes">
<fileset dir="${TOP}/web/html/jsp">
<include name="*.jsp"/>
<include name="*.jspf"/>
</fileset>
</ftp>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org