]> source.dussan.org Git - jgit.git/commit
JSch: fix service publication for ServiceLoader 43/186643/1
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 19 Oct 2021 07:32:20 +0000 (09:32 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Tue, 19 Oct 2021 07:32:20 +0000 (09:32 +0200)
commitf698fbf919c67edac4b3999cc932c1f22da1dffd
treee10ebcf3dfa2cd58aa99245b311b84431c581b83
parentf8b0c00e6a8f5628babff6dd37254a21589b6e44
JSch: fix service publication for ServiceLoader

The file name in META-INF/services must be the fully qualified
interface name; the content the fully qualified implementation class
name.

This was broken in commit 9683bc71.

Add a test for the default factory being found by the ServiceLoader.

Change-Id: I1f180d7f60e5c1e74a39bbd9a5f0099bd8343e21
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.ssh.jsch.test/tst/org/eclipse/jgit/transport/ssh/jsch/ServiceLoaderTest.java [new file with mode: 0644]
org.eclipse.jgit.ssh.jsch/resources/META-INF/services/org.eclipse.jgit.transport.SshSessionFactory [new file with mode: 0644]
org.eclipse.jgit.ssh.jsch/resources/META-INF/services/org.eclipse.jgit.transport.ssh.jsch.SshSessionFactory [deleted file]