Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
titleConfiguration segment for SVN Resource
	<bean id="AuthnMgr" class="org.tmatesoft.svn.core.auth.BasicAuthenticationManager">
		<constructor-arg>
			<null />
		</constructor-arg>
		<!-- alternatively username/pass, username/KeyStore/passphrase/port see 
			http://svnkit.com/javadoc/org/tmatesoft/svn/core/auth/BasicAuthenticationManager.html#constructor_detail -->
	</bean>
	<bean id="ClientMgr" factory-method="newInstance"
		class="org.tmatesoft.svn.core.wc.SVNClientManager"
		p:authenticationManager-ref="AuthnMgr" />
	<bean id="TheSVNURL" factory-method="create" class="org.tmatesoft.svn.core.SVNURL">
		<!-- see http://svnkit.com/javadoc/org/tmatesoft/svn/core/SVNURL.html -->
		<constructor-arg value="https" />
		<constructor-arg>
			<null />
		</constructor-arg>
		<constructor-arg value="svn.shibboleth.net" />
		<constructor-arg value="-1" />
		<constructor-arg
			value="/utilities/spring-extensions/trunk/src/test/resources/data/" />
		<constructor-arg value="false" />
	</bean>
	<bean id="TheSVNResource" class="net.shibboleth.ext.spring.resource.SVNResource">
		<constructor-arg ref="ClientMgr" />
		<constructor-arg ref="TheSVNURL" />
		<constructor-arg value="D:/testdir/dir" />
		<constructor-arg value="-1" />
		<constructor-arg value="TestResource.txt" />
	</bean>

Related Topic

The same underlying code is used when configuring Metadata to be loaded from SVN.  See SVNResourceConfiguration