Skip to content
a very simple java application (command line tool) to import or export a repository from jackrabbit
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
src allow to specify the purge-path for imports May 2, 2013
.gitignore
README
build.xml

README

jack

A small application to export the system view of a jackrabbit repository and
to import xml into a repository.

It is part of the jackalope project, an effort to bring JCR to PHP. See http://liip.to/jackalope

(c) David Buchmann, Liip AG, 2009
This application is licenced under the Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0.html


Use it like this:

    # export system view
    java -jar jack.jar export targetfile.xml <parameters>

    # export document view
    java -jar jack.jar exportdocument targetfile.xml <parameters>

    # format the resulting xml (its all on 1 line by default)
    xmllint --format targetfile.xml > data-formatted.xml


    # import xml data, system/document is autodetected
    java -jar jack.jar import sourcefile.xml <parameters>

Set the parameter repository-base-xpath to the name of the node under root node
you want to export, otherwise you will get a huge jcr:system node with meta
data you probably don't need.


Default configuration is in src/jcr.properties

You can overwrite all options on the command line. Just add name=value
(without a - or --) at the end of the command.

Available options are the connection options: username, password, transport,
storage (backend url), and repository-base-xpath to specify nodes under which
path to export resp. to which node to import.

If you use 'local' as transport, the default configuration assumes that
jackrabbit is located at ../jackrabbit/jackrabbit-standalone/


Compile

Uses ant, see the build.xml file for details.
We expect jackrabbit to be located in folder ../jackrabbit/jackrabbit-standalone/
If this is not the case, adapt your build.xml accordingly
Something went wrong with that request. Please try again.