From 324881178c321dccf05c12dae39567c713d9eb11 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 7 Feb 2008 07:24:39 +0000 Subject: [PATCH] adding a test probe to see if the spooling works git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7005 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/scm/SubversionSCM.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/scm/SubversionSCM.java b/core/src/main/java/hudson/scm/SubversionSCM.java index a892dbcfdc..b9086ab868 100644 --- a/core/src/main/java/hudson/scm/SubversionSCM.java +++ b/core/src/main/java/hudson/scm/SubversionSCM.java @@ -71,6 +71,8 @@ import org.tmatesoft.svn.core.auth.SVNSSHAuthentication; 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; @@ -1245,7 +1247,10 @@ public class SubversionSCM extends SCM implements Serializable { 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 -- GitLab