> Hi Craig, > > Am Freitag, den 18.04.2008, 10:07 -0500 schrieb Craig L. Ching: > > Hi, > > > > Just getting started with sling and I'm wondering what's the right way > > to clear out the JCR repository between runs if I want to reinitialize > > my content. I tried just deleting the 'sling' directory, but after > > startup I just get "empty repository" or something like that. > > I am not exactly clear, what you mean by "clearing JCR Repository". If > you just want to get an empty JCR repository, you can in fact remove the > jackrabbit directory inside the sling directory. This causes a new > repository to be created on the next startup, which is (almost) empty. > > I would assume, that this is what you want to achieve. Of course this > method removes all content you had in the repository before clearing. If > you want to just selective remove content from the repository, you might > try connecting to the repository with WebDAV and just remove the folders > of interest. > Yes, just clear the repository of content. Ok, I'll try just deleting the jackrabbit directory instead of the whole sling directory.
> Alternatively you might want to get the CRX Feature for Eclipse from > http://www.day.com/eclipse/ which allows you to connect to the > repository from within Eclipse and delete whatver content you want > deleted. > Yeah, I've been meaning to check that out. And, this is off-topic for this message, but I saw a bit ago that someone was thinking of writing a web/dojo-based repository browser for sling. If that's not progressing, that is something I could probably try and implement, I do have some pretty good dojo experience. I'm really glad to see you guys thinking about dojo with respect to sling ;-) > Hope this helps. > > Regards > Felix
