ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Rumple <brum...@VALUBOND.COM>
Subject ANT FTP task
Date Fri, 01 Jun 2001 19:31:59 GMT
The FTP task in ANT version 1.2 and 1.3 doesn't close the connection after
the files have been transferred.  The disconnect code is commented out
because it hangs.  The way to fix this problem is to do a logout before the
disconnect is called.  I have created a patch of the 1.2 source:


--- ../FTP.java	Tue Oct 24 08:45:16 2000
+++ FTP.java	Fri Jun  1 14:46:38 2001
@@ -769,12 +769,11 @@
         }
         finally
         {
-            /*
             if (ftp != null && ftp.isConnected())
             {
                 try
                 {
-                    // this hangs - I don't know why.
+                    ftp.logout();
                     ftp.disconnect();
                 }
                 catch(IOException ex)
@@ -782,7 +781,6 @@
                     // ignore it
                 }
             }
-            */
         }
     }
 }






Brian Rumple
Software Engineer
brumple@valubond.com
tel 404-264-2420 x 156
fax 404-264-1287

This electronic mail transmission contains confidential information intended
only for the person(s) named.  Any use, distribution, copying or disclosure
by any other person is strictly prohibited.  If you received this
transmission in error, please notify the sender by reply e-mail and then
destroy the message.  Opinions, conclusions, and other information in this
message that do not relate to the official business of Valubond, Inc. shall
be understood to be neither given nor endorsed by the Company.



Mime
View raw message