Hi Davide

The scala console works pretty well, too. Here is an example session:

[root@authortest repository]# scala -cp /root/oak-run-0.17-SNAPSHOT.jar
Welcome to Scala version 2.10.3 (OpenJDK 64-Bit Server VM, Java 1.6.0_30).
Type in expressions to have them evaluated.
Type :help for more information.

scala> val fs = new org.apache.jackrabbit.oak.plugins.segment.file.FileStore(new java.io.File("."), 1, false) fs: org.apache.jackrabbit.oak.plugins.segment.file.FileStore = org.apache.jackrabbit.oak.plugins.segment.file.FileStore@799a92d1

scala> val segns = new org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore(fs) segns: org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore = org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore@36662d65

scala> segns.getRoot.getChildNode
getChildNode getChildNodeCount getChildNodeEntries getChildNodeNames

scala> segns.getRoot.getChildNodeNames
res0: Iterable[String] = [:async, tmp, home, oak:index, jcr:system, etc, system, content, bin, rep:policy, libs, rep:repoPolicy, var, apps]

Bye!
       Axel


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to