private SVNRepository setupRepo(String _path) throws RepoMismatchException { // Set repository for given URL (+ trunk or tag suffix) String tmp = null; // Build repository URL (incl. path) if(_path==null) tmp = this.url.toString(); else tmp = this.url.toString() + (this.url.toString().endsWith("/") ? "" : "/") + _path; SVNRepository repo = null; try { SVNURL url = SVNURL.parseURIEncoded(tmp); //SVN2Client.log.debug("Environment proxy (host:port): " + System.getProperty("http.proxyHost") + ":" + System.getProperty("http.proxyPort")); SvnClient.log.info("SVNKIT proxy configuration (host:port): " + authManager.getProxyManager(url).getProxyHost() + ":" + authManager.getProxyManager(url).getProxyPort()); repo = SVNRepositoryFactory.create(url); repo.setAuthenticationManager(authManager); repo.testConnection(); } catch(SVNException e) { e.printStackTrace(); throw new RepoMismatchException(this, tmp, e); // "Cannot create SVN repository from URL '" + tmp + "': " + e.getMessage()); } return repo; }