public ISVNConnector createConnector(SVNRepository repository) throws SVNException { SVNURL location = repository.getLocation(); if ("svn+ssh".equals(location.getProtocol())) { return new SVNSSHConnector(); } else if (location.getProtocol().startsWith("svn+")) { String name = location.getProtocol().substring("svn+".length()); if (repository.getTunnelProvider() != null) { ISVNConnector connector = repository.getTunnelProvider().createTunnelConnector(location); if (connector != null) { return connector; } } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.EXTERNAL_PROGRAM, "Cannot find tunnel specification for ''{0}''", name); SVNErrorManager.error(err, SVNLogType.NETWORK); } return new SVNPlainConnector(); } };
public ISVNConnector createConnector(SVNRepository repository) throws SVNException { SVNURL location = repository.getLocation(); if ("svn+ssh".equals(location.getProtocol())) { return new SVNSSHConnector(); } else if (location.getProtocol().startsWith("svn+")) { String name = location.getProtocol().substring("svn+".length()); if (repository.getTunnelProvider() != null) { ISVNConnector connector = repository.getTunnelProvider().createTunnelConnector(location); if (connector != null) { return connector; } } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.EXTERNAL_PROGRAM, "Cannot find tunnel specification for ''{0}''", name); SVNErrorManager.error(err, SVNLogType.NETWORK); } return new SVNPlainConnector(); } };
public ISVNConnector createConnector(SVNRepository repository) throws SVNException { SVNURL location = repository.getLocation(); if ("svn+ssh".equals(location.getProtocol())) { return new SVNSSHConnector(); } else if (location.getProtocol().startsWith("svn+")) { String name = location.getProtocol().substring("svn+".length()); if (repository.getTunnelProvider() != null) { ISVNConnector connector = repository.getTunnelProvider().createTunnelConnector(location); if (connector != null) { return connector; } } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.EXTERNAL_PROGRAM, "Cannot find tunnel specification for ''{0}''", name); SVNErrorManager.error(err, SVNLogType.NETWORK); } return new SVNPlainConnector(); } };
public ISVNConnector createConnector(SVNRepository repository) throws SVNException { SVNURL location = repository.getLocation(); if ("svn+ssh".equals(location.getProtocol())) { return new SVNGanymedConnector(); } else if (location.getProtocol().startsWith("svn+")) { String name = location.getProtocol().substring("svn+".length()); if (repository.getTunnelProvider() != null) { String tunnel = repository.getTunnelProvider().getTunnelDefinition(name); if (tunnel != null) { return new SVNTunnelConnector(name, tunnel); } } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.EXTERNAL_PROGRAM, "Cannot find tunnel specification for ''{0}''", name); SVNErrorManager.error(err); } return new SVNPlainConnector(); } };
private SVNRepository getSourceRepository() throws SVNException { if (mySourceRepository == null) { mySourceRepository = SVNRepositoryFactory.create(myRepos.getLocation()); mySourceRepository.setAuthenticationManager(myRepos.getAuthenticationManager()); mySourceRepository.setDebugLog(myRepos.getDebugLog()); mySourceRepository.setTunnelProvider(myRepos.getTunnelProvider()); mySourceRepository.setCanceller(myRepos.getCanceller()); } return mySourceRepository; }
private SVNRepository getSourceRepository() throws SVNException { if (mySourceRepository == null) { mySourceRepository = SVNRepositoryFactory.create(myRepos.getLocation()); mySourceRepository.setAuthenticationManager(myRepos.getAuthenticationManager()); mySourceRepository.setDebugLog(myRepos.getDebugLog()); mySourceRepository.setTunnelProvider(myRepos.getTunnelProvider()); mySourceRepository.setCanceller(myRepos.getCanceller()); } return mySourceRepository; }
private SVNRepository getSourceRepository() throws SVNException { if (mySourceRepository == null) { mySourceRepository = SVNRepositoryFactory.create(myRepos.getLocation()); mySourceRepository.setAuthenticationManager(myRepos.getAuthenticationManager()); mySourceRepository.setDebugLog(myRepos.getDebugLog()); mySourceRepository.setTunnelProvider(myRepos.getTunnelProvider()); mySourceRepository.setCanceller(myRepos.getCanceller()); } return mySourceRepository; }