]> source.dussan.org Git - jgit.git/commit
TransportSftp: eliminate dependency on Jsch 82/131882/8
authorThomas Wolf <thomas.wolf@paranor.ch>
Mon, 17 Sep 2018 18:36:36 +0000 (20:36 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 13 Nov 2018 18:46:00 +0000 (10:46 -0800)
commit705691ee517900d3359868212a50d4dc7f048245
treed7f56bb707ce1e2f1d9889bce8a355373ac1f708
parenta630b45e50888e22e6762089b4fc1a3a80cbe7d8
TransportSftp: eliminate dependency on Jsch

Introduce an FtpChannel abstraction, which can be obtained from a
RemoteSession. In JSchSession, wrap a JSch ChannelSftp as such an
FtpChannel. The JSch-specific SftpException is also mapped to a
generic FtpException. Rewrite TransportSftp to use only the new
abstraction layer.

This makes it possible to provide alternate ssh/sftp implementations.

Bug: 520927
Change-Id: I379026f7d4122f34931df909a28e73c02cd8a1da
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit/.settings/.api_filters
org.eclipse.jgit/src/org/eclipse/jgit/transport/FtpChannel.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/JschSession.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/RemoteSession.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportSftp.java