/** * Sets a debug logger to be used in all {@link SVNRepository} objects produced by this * pool. * * @param log debug logger * @since 1.1.4 */ public void setDebugLog(ISVNDebugLog log) { myDebugLog = log == null ? SVNDebugLog.getDefaultLog() : log; Map<String, SVNRepository> pool = getPool(); for (Iterator<String> protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setDebugLog(myDebugLog); } }
/** * Sets a debug logger to be used in all {@link SVNRepository} objects produced by this * pool. * * @param log debug logger * @since 1.1.4 */ public void setDebugLog(ISVNDebugLog log) { myDebugLog = log == null ? SVNDebugLog.getDefaultLog() : log; Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setDebugLog(myDebugLog); } }
/** * Sets a debug logger to be used in all {@link SVNRepository} objects produced by this * pool. * * @param log debug logger * @since 1.1.4 */ public void setDebugLog(ISVNDebugLog log) { myDebugLog = log == null ? SVNDebugLog.getDefaultLog() : log; Map pool = getPool(); for (Iterator protocols = pool.keySet().iterator(); protocols.hasNext();) { String key = (String) protocols.next(); SVNRepository repository = (SVNRepository) pool.get(key); repository.setDebugLog(myDebugLog); } }
protected SVNRepository createRepository(SVNURL url, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } repository.setDebugLog(getDebugLog()); return repository; }
protected SVNRepository createRepository(SVNURL url, String uuid, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } if (uuid != null) { String reposUUID = repository.getRepositoryUUID(true); if (!uuid.equals(reposUUID)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_UUID_MISMATCH, "Repository UUID ''{0}'' doesn''t match expected UUID ''{1}''", new Object[] { reposUUID, uuid }); SVNErrorManager.error(err, SVNLogType.WC); } } repository.setDebugLog(getDebugLog()); repository.setCanceller(getEventDispatcher()); return repository; }
protected SVNRepository createRepository(SVNURL url, String uuid, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } if (uuid != null) { String reposUUID = repository.getRepositoryUUID(true); if (!uuid.equals(reposUUID)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_UUID_MISMATCH, "Repository UUID ''{0}'' doesn''t match expected UUID ''{1}''", new Object[] { reposUUID, uuid }); SVNErrorManager.error(err, SVNLogType.WC); } } repository.setDebugLog(getDebugLog()); repository.setCanceller(getEventDispatcher()); return repository; }
protected SVNRepository createRepository(SVNURL url, String uuid, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } if (uuid != null) { String reposUUID = repository.getRepositoryUUID(true); if (!uuid.equals(reposUUID)) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_UUID_MISMATCH, "Repository UUID ''{0}'' doesn''t match expected UUID ''{1}''", new Object[] { reposUUID, uuid }); SVNErrorManager.error(err, SVNLogType.WC); } } repository.setDebugLog(getDebugLog()); repository.setCanceller(getEventDispatcher()); return repository; }
repository.setDebugLog(getDebugLog()); return repository;
protected SVNRepository createRepository(SVNURL url, String uuid, boolean mayReuse) throws SVNException { SVNRepository repository = null; if (myRepositoryPool == null) { repository = SVNRepositoryFactory.create(url, null); } else { repository = myRepositoryPool.createRepository(url, mayReuse); } if (uuid != null) { String reposUUID = repository.getRepositoryUUID(true); if (!uuid.equals(reposUUID)) { SVNErrorMessage err = SVNErrorMessage .create( SVNErrorCode.RA_UUID_MISMATCH, "Repository UUID ''{0}'' doesn''t match expected UUID ''{1}''", new Object[] { reposUUID, uuid }); SVNErrorManager.error(err, SVNLogType.WC); } } repository.setDebugLog(getDebugLog()); repository.setCanceller(getEventDispatcher()); return repository; }
repository.setDebugLog(getDebugLog()); return repository;
repository.setDebugLog(getDebugLog()); return repository;
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; }
repos.setAuthenticationManager(myAuthManager); repos.setTunnelProvider(myTunnelProvider); repos.setDebugLog(myDebugLog); repos.setCanceller(myCanceller); return repos; repos.setDebugLog(myDebugLog); repos.setCanceller(myCanceller); return repos;
repos.setAuthenticationManager(myAuthManager); repos.setTunnelProvider(myTunnelProvider); repos.setDebugLog(myDebugLog); repos.setCanceller(myCanceller); return repos; repos.setDebugLog(myDebugLog); repos.setCanceller(myCanceller); return repos;
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; }
repos.setAuthenticationManager(myAuthManager); repos.setTunnelProvider(myTunnelProvider); repos.setDebugLog(myDebugLog); repos.setCanceller(myCanceller); setOptionalSpoolLocation(repos, myTunnelProvider); repos.setDebugLog(myDebugLog); repos.setCanceller(myCanceller); setOptionalSpoolLocation(repos, myTunnelProvider);
repository.setDebugLog(getDebugLog()); return repository;