Hi
When using the net Java 5 branch, the replies returned from the server
is stored in a list that is not emptied between commands. This means
that when for example printing the replies with a
ProtocolCommandListener you will get the full history of replies rather
than the last one. The following patch seems to work:
Index: src/main/java/org/apache/commons/net/ftp/FTP.java
===================================================================
--- src/main/java/org/apache/commons/net/ftp/FTP.java (revision 497851)
+++ src/main/java/org/apache/commons/net/ftp/FTP.java (working copy)
@@ -266,7 +266,7 @@
int length;
_newReplyString = true;
- //_replyLines. setSize(0);
+ _replyLines.clear();
String line = _controlInput_.readLine();
/niklas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]