Project project = Project.findByOwnerAndProjectName(userName, projectName);
return RepositoryService.getRepository(project);
}
public static DAVServlet createDavServlet(final String userName) throws ServletException {
DAVServlet servlet = new DAVServlet();
servlet.init(new ServletConfig() {
@Override
public String getInitParameter(String name) {
if (name.equals("SVNParentPath")) {
return new File(SVNRepository.getRepoPrefix() + userName + "/").getAbsolutePath();