diff src/org/tmatesoft/hg/internal/remote/RemoteConnectorDescriptor.java @ 702:992fa84e7885

Reference ssh-dependant class by the fq name to avoid runtime dependency from the ssh library
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 08 Aug 2013 21:32:22 +0200
parents a483b2b68a2e
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/remote/RemoteConnectorDescriptor.java	Thu Aug 08 21:05:21 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/remote/RemoteConnectorDescriptor.java	Thu Aug 08 21:32:22 2013 +0200
@@ -84,8 +84,7 @@
 			final ClassLoader cl = Provider.class.getClassLoader();
 			knownConnectors.put("http", new Pair<ClassLoader, String>(cl, HttpConnector.class.getName()));
 			knownConnectors.put("https", new Pair<ClassLoader, String>(cl, HttpConnector.class.getName()));
-			 // FIXME replace SshConnector.class with fqn string to avoid dependency from the trilead library in runtime
-			knownConnectors.put("ssh", new Pair<ClassLoader, String>(cl, SshConnector.class.getName()));
+			knownConnectors.put("ssh", new Pair<ClassLoader, String>(cl, "org.tmatesoft.hg.internal.remote.SshConnector"));
 		}
 
 		public HgRemoteRepository.RemoteDescriptor get(SessionContext ctx, URI uri) {