<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
         xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>DAV Subversion Servlet</display-name>
    <servlet>
        <servlet-name>svnkit1</servlet-name>
        <servlet-class>org.tmatesoft.svn.core.internal.server.dav.DAVServlet</servlet-class>
        <init-param>
            <param-name>SVNParentPath</param-name>
            <param-value>%python.test.home%/python/cmdline/svn-test-work/repositories</param-value>
        </init-param>
        <!--<init-param>-->
            <!--<param-name>AuthzSVNAccessFile</param-name>-->
            <!--<param-value>/var/svn/access_conf</param-value>-->
        <!--</init-param>-->        
    </servlet>
    <servlet-mapping>
        <servlet-name>svnkit1</servlet-name>
        <url-pattern>/svn-test-work/repositories/*</url-pattern>
    </servlet-mapping> 
    <servlet>
	    <servlet-name>svnkit2</servlet-name>
	    <servlet-class>org.tmatesoft.svn.core.internal.server.dav.DAVServlet</servlet-class>
	    <init-param>
		    <param-name>SVNPath</param-name>
		    <param-value>%python.test.home%/python/cmdline/svn-test-work/local_tmp/repos</param-value>
	    </init-param>
	    <!--<init-param>-->
		    <!--<param-name>AuthzSVNAccessFile</param-name>-->
		    <!--<param-value>/var/svn/access_conf</param-value>-->
		    <!--</init-param>-->        
    </servlet>
    <servlet-mapping>
	    <servlet-name>svnkit2</servlet-name>
	    <url-pattern>/svn-test-work/local_tmp/repos/*</url-pattern>
    </servlet-mapping>
    
    <security-constraint>
        <display-name>DAV SVNKit Security Constraint</display-name>
        <web-resource-collection>
            <web-resource-name>svnkit1</web-resource-name>
            <url-pattern>/svn-test-work/repositories/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>tomcat</role-name>
        </auth-constraint>
    </security-constraint>

    <security-constraint>
        <display-name>DAV SVNKit Security Constraint</display-name>
        <web-resource-collection>
            <web-resource-name>svnkit2</web-resource-name>
            <url-pattern>/svn-test-work/local_tmp/repos/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>tomcat</role-name>
        </auth-constraint>
    </security-constraint>

    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>SVNKit Repository Realm</realm-name>
    </login-config>
    
    <security-role>
    	<role-name>tomcat</role-name>
    </security-role>    
</web-app>
