maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1128109 - in /maven/wagon/trunk/wagon-providers/wagon-ftp/src: main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java test/java/org/apache/maven/wagon/providers/ftp/FtpWagonTest.java
Date Thu, 26 May 2011 22:22:40 GMT
Author: struberg
Date: Thu May 26 22:22:40 2011
New Revision: 1128109

URL: http://svn.apache.org/viewvc?rev=1128109&view=rev
Log:
WAGON-332 interpret retval 200 (COMMAND_OK) as correct result in wagon-ftp

Modified:
    maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java
    maven/wagon/trunk/wagon-providers/wagon-ftp/src/test/java/org/apache/maven/wagon/providers/ftp/FtpWagonTest.java

Modified: maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java?rev=1128109&r1=1128108&r2=1128109&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java
Thu May 26 22:22:40 2011
@@ -474,7 +474,7 @@ public class FtpWagon
             int status = ftp.stat( filename );
 
             return ( ( status == FTPReply.FILE_STATUS ) || ( status == FTPReply.FILE_STATUS_OK
)
-                            || ( status == FTPReply.SYSTEM_STATUS ) );
+                     || ( status == FTPReply.COMMAND_OK ) || ( status == FTPReply.SYSTEM_STATUS
) );
         }
         catch ( IOException e )
         {

Modified: maven/wagon/trunk/wagon-providers/wagon-ftp/src/test/java/org/apache/maven/wagon/providers/ftp/FtpWagonTest.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-ftp/src/test/java/org/apache/maven/wagon/providers/ftp/FtpWagonTest.java?rev=1128109&r1=1128108&r2=1128109&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-ftp/src/test/java/org/apache/maven/wagon/providers/ftp/FtpWagonTest.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-ftp/src/test/java/org/apache/maven/wagon/providers/ftp/FtpWagonTest.java
Thu May 26 22:22:40 2011
@@ -47,18 +47,6 @@ public class FtpWagonTest
 {
     static private FtpServer server;
 
-
-
-    /**
-     * TODO: fix WAGON-329
-     * @throws Exception
-     */
-    @Override
-    public void testWagonResourceExists() throws Exception
-    {
-      //X TODO temporarily disabled
-    }
-
     protected String getProtocol()
     {
         return "ftp";



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message