jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r155110 - incubator/jackrabbit/trunk/xdocs/firststeps.xml
Date Thu, 24 Feb 2005 00:31:37 GMT
Author: jukka
Date: Wed Feb 23 16:31:34 2005
New Revision: 155110

URL: http://svn.apache.org/viewcvs?view=rev&rev=155110
Log:
Updated the First Steps document to match latest Jackrabbit sources. (JCR-52)

Modified:
    incubator/jackrabbit/trunk/xdocs/firststeps.xml

Modified: incubator/jackrabbit/trunk/xdocs/firststeps.xml
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/xdocs/firststeps.xml?view=diff&r1=155109&r2=155110
==============================================================================
--- incubator/jackrabbit/trunk/xdocs/firststeps.xml (original)
+++ incubator/jackrabbit/trunk/xdocs/firststeps.xml Wed Feb 23 16:31:34 2005
@@ -95,6 +95,12 @@
             </FileSystem>
         </SearchIndex>
     </Workspace>
+    <Versioning rootPath="${rep.home}/versions">
+        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+            <param name="path" value="${rep.home}/versions"/>
+        </FileSystem>
+        <PersistenceManager class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager"
/>
+    </Versioning>
 </Repository>   
     </source>
    </p>
@@ -127,14 +133,14 @@
     Make sure that all of the <a href="dependencies.html">dependencies</a> 
     are added to your classpath, as well as the Jackrabbit
     repository implementation (named something like 
-    <code>jackrabbit-x.xx-xxx.jar</code>) that has been built by Maven
+    <code>jackrabbit-x.xx-xxx-dev.jar</code>) that has been built by Maven
     into the <code>target</code> directory of your checkout.
    </p>
    <p>
     Now you should be ready to compile the above <code>JCRTest</code>
     class and run it, which should produce the following output:
     <source>
-nt:unstructured
+rep:root
     </source>
    </p>
   </section>
@@ -190,9 +196,10 @@
   }
 }
     </source>
-    which should produce the following output when started for the first time:
+    which should produce the following output (possibly surrounded by log
+    messages, depending on settings) when started for the first time:
     <source>
-nt:unstructured
+rep:root
 creating testnode
 Hello, World.   
     </source>
@@ -313,7 +320,17 @@
     PropertyIterator pit=n.getProperties();
     while (pit.hasNext()) {
       Property p=pit.nextProperty();
-      System.out.println(p.getPath()+"="+p.getString());
+      System.out.print(p.getPath() + "=");
+      if (p.getDefinition().isMultiple()) {
+        Value[] values = p.getValues();
+        for (int i = 0; i &lt; values.length; i++) {
+          if (i &gt; 0) System.out.println(",");
+          System.out.println(values[i].getString());
+        }
+      } else {
+        System.out.print(p.getString());
+      }
+      System.out.println();
     }
     NodeIterator nit=n.getNodes();
     while (nit.hasNext()) {
@@ -325,14 +342,14 @@
     </source>
     Which should output something along the lines of:
     <source>
-nt:unstructured
-importing xml
+rep:root
 /
-/jcr:primaryType=nt:unstructured
+/jcr:primaryType=rep:root
 /jcr:system
-/jcr:system/jcr:primaryType=nt:unstructured
+/jcr:system/jcr:primaryType=rep:system
 /jcr:system/jcr:versionStorage
-/jcr:system/jcr:versionStorage/jcr:primaryType=nt:unstructured
+/jcr:system/jcr:versionStorage/jcr:primaryType=rep:versionStorage
+/jcr:system/jcr:versionStorage/jcr:mixinTypes=
 /testnode
 /testnode/jcr:primaryType=nt:unstructured
 /testnode/testprop=Hello, World.



Mime
View raw message