maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r165263 - /maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/SftpWagon.java
Date Fri, 29 Apr 2005 05:07:58 GMT
Author: brett
Date: Thu Apr 28 22:07:57 2005
New Revision: 165263

URL: http://svn.apache.org/viewcvs?rev=165263&view=rev
Log:
update to new API

Modified:
    maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/SftpWagon.java

Modified: maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/SftpWagon.java
URL: http://svn.apache.org/viewcvs/maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/SftpWagon.java?rev=165263&r1=165262&r2=165263&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/SftpWagon.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/SftpWagon.java
Thu Apr 28 22:07:57 2005
@@ -30,9 +30,6 @@
 import org.codehaus.plexus.util.StringUtils;
 
 import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
 
 /**
  * SFTP protocol wagon.
@@ -176,35 +173,6 @@
             }
 
             channel.cd( dirs[i] );
-        }
-    }
-
-    private void postProcessListeners( Resource resource, File source, int requestType )
-        throws TransferFailedException
-    {
-        byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
-
-        TransferEvent transferEvent = new TransferEvent( this, resource, TransferEvent.TRANSFER_PROGRESS,
requestType );
-
-        try
-        {
-            InputStream input = new FileInputStream( source );
-
-            while ( true )
-            {
-                int n = input.read( buffer );
-
-                if ( n == -1 )
-                {
-                    break;
-                }
-
-                fireTransferProgress( transferEvent, buffer, n );
-            }
-        }
-        catch ( IOException e )
-        {
-            throw new TransferFailedException( "Failed to post-process the source file",
e );
         }
     }
 



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


Mime
View raw message