This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit 257b1b5e114c57741f2f0bfe957aa3b5757294e0
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Feb 16 12:06:03 2025 -0500

    Add FTP.opts(String, String)
---
 src/changes/changes.xml                                             | 1 +
 src/test/java/org/apache/commons/net/ftp/ListingFunctionalTest.java | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 86dc933b..131a0ef6 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -92,6 +92,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
SubnetInfo.iterableAddressStrings().</action> 
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
SubnetInfo.streamAddressStrings().</action>
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
FTPCmd.OPTS.</action>
+      <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
FTP.opts(String, String).</action>
       <!-- UPDATE -->
       <action type="update" dev="ggregory" due-to="Gary Gregory, 
Dependabot">Bump org.apache.commons:commons-parent from 70 to 81 #261, #278, 
#280, #285, #298, #293, #300.</action>
       <action type="update" dev="ggregory" due-to="Gary Gregory, 
Dependabot">Bump org.apache.commons:commons-lang3 from 3.14.0 to 3.17.0 #268, 
#273, #281.</action>
diff --git 
a/src/test/java/org/apache/commons/net/ftp/ListingFunctionalTest.java 
b/src/test/java/org/apache/commons/net/ftp/ListingFunctionalTest.java
index e18b775a..bdf1129f 100644
--- a/src/test/java/org/apache/commons/net/ftp/ListingFunctionalTest.java
+++ b/src/test/java/org/apache/commons/net/ftp/ListingFunctionalTest.java
@@ -117,11 +117,12 @@ public class ListingFunctionalTest extends TestCase {
     protected void setUp() throws Exception {
         super.setUp();
         client = new FTPClient();
+        client.addProtocolCommandListener(new 
PrintCommandListener(System.out));
         client.connect(hostName);
         client.login("anonymous", "anonymous");
         client.enterLocalPassiveMode();
         client.setAutodetectUTF8(true);
-        client.addProtocolCommandListener(new 
PrintCommandListener(System.out));
+        client.opts("UTF-8", "NLST");
     }
 
     /*

Reply via email to