mirror of https://github.com/apache/jclouds.git
Remove commons-io dependency from jsch
FilterInputStream suffices since we only override close and we can get away with using java.io.ByteArrayOutputStream.
This commit is contained in:
parent
ea75c96560
commit
981b0d047f
|
@ -88,11 +88,6 @@
|
||||||
<artifactId>jsch</artifactId>
|
<artifactId>jsch</artifactId>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>commons-io</groupId>
|
|
||||||
<artifactId>commons-io</artifactId>
|
|
||||||
<version>2.4</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
|
|
@ -30,7 +30,9 @@ import static org.jclouds.crypto.CryptoStreams.md5;
|
||||||
import static org.jclouds.crypto.SshKeys.fingerprintPrivateKey;
|
import static org.jclouds.crypto.SshKeys.fingerprintPrivateKey;
|
||||||
import static org.jclouds.crypto.SshKeys.sha1PrivateKey;
|
import static org.jclouds.crypto.SshKeys.sha1PrivateKey;
|
||||||
|
|
||||||
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
|
import java.io.FilterInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
@ -40,8 +42,6 @@ import javax.annotation.PreDestroy;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.inject.Named;
|
import javax.inject.Named;
|
||||||
|
|
||||||
import org.apache.commons.io.input.ProxyInputStream;
|
|
||||||
import org.apache.commons.io.output.ByteArrayOutputStream;
|
|
||||||
import org.jclouds.compute.domain.ExecChannel;
|
import org.jclouds.compute.domain.ExecChannel;
|
||||||
import org.jclouds.compute.domain.ExecResponse;
|
import org.jclouds.compute.domain.ExecResponse;
|
||||||
import org.jclouds.domain.LoginCredentials;
|
import org.jclouds.domain.LoginCredentials;
|
||||||
|
@ -74,7 +74,7 @@ import com.jcraft.jsch.Session;
|
||||||
*/
|
*/
|
||||||
public class JschSshClient implements SshClient {
|
public class JschSshClient implements SshClient {
|
||||||
|
|
||||||
private final class CloseFtpChannelOnCloseInputStream extends ProxyInputStream {
|
private final class CloseFtpChannelOnCloseInputStream extends FilterInputStream {
|
||||||
|
|
||||||
private final ChannelSftp sftp;
|
private final ChannelSftp sftp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue