posted by ebassil at Oct 2, 2008 7:04 AM
Quote
Hi Sebastien,That's it… Like the Homer says DOOOHHHH!!!!You have to use the following line in the property file.Great software. Very simple yet effective. I will defenitely be promoting it on my blog.Cheers,Emile
subversion.authz.file.path=C:/Repositories/ls-svn/conf/authz
posted by Sebastien Jourdain at Sep 29, 2008 10:12 AM
Quote
In any java property file use / instead of \, or you should double your \ like that \\.
posted by ebassil at Sep 29, 2008 1:01 AM
Quote
Hi,I have installed subversion and LibreSource.
Everything works well with LibreSource, except subversion.I can create repositories from the command prompt and have setup the svnserve as a service.However, when I attempt to create a subversion repository from LibreSource I get the following error:Error in createRepository : null
Caused by : nullThe LibreSource command window has the following errors:
This is how my config looks like:
SVN is in the following folder: C:/SVN
SVN repositories are in C:/Repositories
I have created a folder called ls-svn under repositories:
C:/Repositories/ls-svnThere are three folders under ls-svn:
service root C:Repositoriesls-svn" displayname= "LibreSource Subversion Repository" depend= TcpipThe bin directory contains two files:
My LibreSource config file C:/LibreSource/JONAS_4_7_6/conf/libresourceConfig.properties has the following settings for Subversion:I have tried to run it with both
So it looks to me like the repositoryDirectory is null.How can I make sure that getSVNRootRepositoryPath is returning the right value?Can someone please help shed a light at what I am doing wrong?Thank you all.
at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NullPointerException at java.io.File.<init>(File.java:222) at org.libresource.subversion.ejb.LibresourceSubversionServiceBean.canCreateRepository(LibresourceSubversionServiceBean.java:525) at org.libresource.subversion.ejb.LibresourceSubversionServiceBean.createRepository(LibresourceSubversionServiceBean.java:141) … 65 more Mon Sep 29 08:36:21 EST 2008 : root : ERROR : org.libresource.subversion.LibresourceSubversionException
- conf
- bin
- projects
- svnserve.conf
- authz
- passwd
- SVNCreate.bat
- SVNMove.bat
@echo offset basepath="C:repositoriesls-svnprojects"if "%basepath%%1"=="%basepath%" ( echo Project name not provided! exit /B ) else ( svnadmin create "%basepath%%1" )
# custom web properties libresource.web.conf=C:/LibreSource/JONAS_4_7_6/work/webapps/jonas/LibreSource-2.5/LibreSource-Web-2.0/WEB-INF/libresource-web.xmlsubversion.authz.file.path=C:/Repositories/ls-svn/conf/ subversion.repository.base.path=C:/Repositories/ls-svn/projects/ subversion.create.repository.cmd=C:/Repositories/ls-svn/bin/SVNCreate.bat subversion.rename.repository.cmd=C:/Repositories/ls-svn/bin/SVNMove.bat
- Subversion configuration
- subversion.authz.file.path=C:/Repositories/ls-svn/conf/
- subversion.authz.file.path=C:/Repositories/ls-svn/conf/authz
File repositoryDirectory = new File(getSVNRootRepositoryPath()); return !Arrays.asList(repositoryDirectory.list()).contains(repositoryName);