title: SVNKit use of auth folder
body: <p>I'm using <code>SVNKit</code> (1.8.4) to retrieve logs (only the logs) from different repositories, on different servers, with different protocols. The whole thing runs on a <code>Tomcat</code> server and is querying each <code>SVN</code> server every 2 minutes for changes.</p>
  
  <p>After a lot of trial and error, I came up with a scheme where I make a folder for each <code>SVN</code> client instance, so that it can store all the credentials etc. in its own isolated place.</p>
  
  <p>Here's the relevant code that creates the <code>SVNRepository</code> object:</p>
  
  <pre><code>SVNRepository getRepository(String url,
                                  String authFolder,
                                      String username,
                                          String password)
                                              throws SVNException {
      SVNRepository repository =
          SVNRepositoryFactory.create( SVNURL.parseURIEncoded(url) );  
      ISVNAuthenticationManager authManager =
          SVNWCUtil.createDefaultAuthenticationManager(
                        authFolder, username, password, true);
      repository.setAuthenticationManager(authManager);
      return repository;
  }
  </code></pre>
  
  <p>Is there a better way to do this?</p>