-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
50 lines (31 loc) · 1.65 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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