Skip to content

Commit

Permalink
adding a test probe to see if the spooling works
Browse files Browse the repository at this point in the history
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7005 71c3de6d-444a-0410-be80-ed276b4c234a
  • Loading branch information
kohsuke committed Feb 7, 2008
1 parent a43c011 commit 3248811
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/main/java/hudson/scm/SubversionSCM.java
Expand Up @@ -71,6 +71,8 @@
import org.tmatesoft.svn.core.auth.SVNSSLAuthentication;
import org.tmatesoft.svn.core.auth.SVNUserNameAuthentication;
import org.tmatesoft.svn.core.internal.io.dav.DAVRepositoryFactory;
import org.tmatesoft.svn.core.internal.io.dav.http.IHTTPConnectionFactory;
import org.tmatesoft.svn.core.internal.io.dav.http.DefaultHTTPConnectionFactory;
import org.tmatesoft.svn.core.internal.io.fs.FSRepositoryFactory;
import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl;
import org.tmatesoft.svn.core.internal.util.SVNPathUtil;
Expand Down Expand Up @@ -1245,7 +1247,10 @@ public boolean repositoryLocationsExist() throws SVNException {

private static final class Initializer {
static {
DAVRepositoryFactory.setup(); // http, https
if(Boolean.getBoolean("hudson.spool-svn"))
DAVRepositoryFactory.setup(new DefaultHTTPConnectionFactory(null,true,null));
else
DAVRepositoryFactory.setup(); // http, https
SVNRepositoryFactoryImpl.setup(); // svn, svn+xxx
FSRepositoryFactory.setup(); // file

Expand Down

0 comments on commit 3248811

Please sign in to comment.