You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/03/12 13:02:21 UTC

svn commit: r157248 - lenya/sandbox/jcrsitetree/src/java/org/apache/lenya/cms/publication/JCRSiteTree.java

Author: michi
Date: Sat Mar 12 04:02:19 2005
New Revision: 157248

URL: http://svn.apache.org/viewcvs?view=rev&rev=157248
Log:
read sitetree through JCR instead from filesystem

Modified:
    lenya/sandbox/jcrsitetree/src/java/org/apache/lenya/cms/publication/JCRSiteTree.java

Modified: lenya/sandbox/jcrsitetree/src/java/org/apache/lenya/cms/publication/JCRSiteTree.java
URL: http://svn.apache.org/viewcvs/lenya/sandbox/jcrsitetree/src/java/org/apache/lenya/cms/publication/JCRSiteTree.java?view=diff&r1=157247&r2=157248
==============================================================================
--- lenya/sandbox/jcrsitetree/src/java/org/apache/lenya/cms/publication/JCRSiteTree.java (original)
+++ lenya/sandbox/jcrsitetree/src/java/org/apache/lenya/cms/publication/JCRSiteTree.java Sat Mar 12 04:02:19 2005
@@ -75,6 +75,7 @@
      * @throws SiteTreeException if an error occurs
      */
     protected JCRSiteTree(File pubDir, String area) throws SiteTreeException {
+/*
         this(
             new File(
                 pubDir,
@@ -83,6 +84,7 @@
                     + area
                     + File.separator
                     + SITE_TREE_FILENAME));
+*/
         log.error("Load sitetree: " + pubDir + " " + area);
         this.area = area;
 
@@ -93,8 +95,8 @@
 
             org.apache.cocoon.xml.dom.DOMBuilder domBuilder = new org.apache.cocoon.xml.dom.DOMBuilder();
             session.exportDocView("/" + area + "/_pre10:site", domBuilder, true, false);
-            Document doc = domBuilder.getDocument();
-	    log.error("Root Element Name: " + doc.getDocumentElement().getTagName());
+            document = domBuilder.getDocument();
+	    log.error("Root Element Name: " + document.getDocumentElement().getTagName());
 
 // For Debugging
 /*



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org