That was just what I needed - now I copy the file to home directory on first-time startup.
FYI, I was not able to access a resource stream for " /META-INF/repository.xml" when using this technique from a servlet (the code you referenced is called from a main() method). Instead I treated it like an embedded resource and packaged it with my source files. Thanks very much On Thu, Apr 22, 2010 at 5:15 PM, Rakesh Vidyadharan <[email protected]>wrote: > > On 22 Apr 2010, at 16:46, Rob Brown wrote: > > > I'm trying to get an embedded version of jackrabbit working in my web > app. > > For convenience, I would like to package the repository.xml within the > war > > file so I can upload in 1 step to tomcat. I'm building the war using > > eclipse. > > > > I've tried a number of different ways to do this (in src folder, in > project > > root, in WebContent, in WEB-INF) and am unable to pick up my slightly > > modified repository.xml. The app still runs fine (which I assume is > default > > behavior for jackrabbit if no repository.xml is found) but I can't change > > any config options. > > > > Has anyone got something like this working? > > > http://code.google.com/p/sptcms/source/browse/trunk/src/app/com/sptci/cms/util/CreateRepository.java
