Hi, Am Dienstag, den 13.05.2008, 00:20 +0600 schrieb janandith jayawardena: > Hi, > > There are four repository.xml files in the sling directory. > > These are > > 1. sling/launchpad/app/sling/repository.xml
This should NOT be in SVN. It is only created if you launch sling as a standalone jar file from within the launchpad/app directory. If it is in SVN, this would be a bug. > > 2. sling/jcr/jackrabbit-server/target/classes/repository.xml This is a build time artifact and is not part of the source, actually. > 3. sling/jcr/jackrabbit-server/src/main/resources/repository.xml This is the one, which is "used". In fact, this is the original one of the copy you listed first. > > 4. sling/launchpad/webapp/target/it/sling/repository.xml This is the copy of (3) which is created while running the integration tests. Actually, it is - again - a build time artifact. > > What repository.xml should i use when adding content to sling ?. What exactly do you want to do ? If you want to add content to sling, you don't need the repository.xml file, you need the repository instance. And this you get as the javax.jcr.Repository service from the OSGi service registry. Is this what you want to do ? Regards Felix
