-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
62 lines (49 loc) · 1.59 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
51
52
53
54
55
56
57
58
59
60
61
62
********************************
phpCR Prototype with java bridge
********************************
http://liip.to/jackalope
ebi at liip.ch
david at liip.ch
chregu at liip.ch
*****
Usage
*****
This is a prototype implementation of phpCR mapping all calls to the jackrabbit
java client libraries. It requires the zend java bridge in order to use java
inside PHP.
http://github.com/k-fish/PHPCR
To see how to set up the prototype, have a look at
https://fosswiki.liip.ch/display/jackalope/Getting+the+jr_cr+prototype+running+with+Zend+Server
To run the tests, make sure you use the phpunit from zend and not your system's
phpunit binary.
$ /usr/local/zend/bin/php-cli /usr/local/zend/bin/phpunit tests/level1/ReadTest.php
*****
Setup
*****
Setting up submodules
*********************
After the first clone, don't forget to
git submodule init
git submodule update
Installing PHPUnit
******************
Make sure you use the pear from Zend.
See http://www.phpunit.de/manual/current/en/installation.html
$ /usr/local/zend/bin/pear install phpunit
Dependencies
************
java in PATH
PHPUnit in PATH
PHPUnit in include_path
Setting up Jackrabbit
*********************
- Create tests workspace which is different from your default workspace.
See http://jackrabbit.apache.org/jackrabbit-configuration.html#JackrabbitConfiguration-Workspaceconfiguration
Or:
- Go to the directory you started jackrabbit-standalone (eg. /opt/svn/jackrabbit/jackrabbit-standalone/target)
- cd jackrabbit
- cd workspaces
- cp -r default tests
- cd tests
- change <Workspace name="default"> to <Workspace name="tests">
- start jackrabbit again