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 2006/02/25 11:51:24 UTC

svn commit: r380919 - in /lenya/trunk/src: java/org/apache/lenya/cms/repository/SourceNode.java pubs/blog/config/publication.xconf pubs/default/config/publication.xconf

Author: michi
Date: Sat Feb 25 02:51:22 2006
New Revision: 380919

URL: http://svn.apache.org/viewcvs?rev=380919&view=rev
Log:
configuration of content dir started

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java
    lenya/trunk/src/pubs/blog/config/publication.xconf
    lenya/trunk/src/pubs/default/config/publication.xconf

Modified: lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java?rev=380919&r1=380918&r2=380919&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/repository/SourceNode.java Sat Feb 25 02:51:22 2006
@@ -88,7 +88,24 @@
      * @return A string.
      */
     protected String getRealSourceURI() {
-        return "context://" + this.sourceURI.substring(Node.LENYA_PROTOCOL.length());
+/*
+        if (getLogger().isDebugEnabled()) {
+            getLogger().error("test ...");
+        }
+*/
+        //String realSourceURI = "file://home/michi/" + this.sourceURI.substring(Node.LENYA_PROTOCOL.length());
+        String realSourceURI = "context://" + this.sourceURI.substring(Node.LENYA_PROTOCOL.length());
+/*
+        try {
+            SourceResolver resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
+            getLogger().error("Real Source URI: " + realSourceURI);
+            Source source = (Source) resolver.resolveURI(realSourceURI);
+            getLogger().error("Source: " + source);
+        } catch (Exception e) {
+            getLogger().error(e.getMessage());
+        }
+*/
+        return realSourceURI;
     }
 
     /**

Modified: lenya/trunk/src/pubs/blog/config/publication.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/pubs/blog/config/publication.xconf?rev=380919&r1=380918&r2=380919&view=diff
==============================================================================
--- lenya/trunk/src/pubs/blog/config/publication.xconf (original)
+++ lenya/trunk/src/pubs/blog/config/publication.xconf Sat Feb 25 02:51:22 2006
@@ -31,4 +31,14 @@
   <resource-type name="sidebar" workflow="workflow.xml"/>
   <module name="entry"/>
   <module name="sidebar"/>
+
+  <!-- NOTE: The configuration of content directories has NOT been fully tested yet and might lead to unexpected results. Use at own risk ;-) -->
+  <!--
+  <content-dir area="authoring">lenya/pubs/blog/content/authoring</content-dir>
+  <content-dir      area="live">lenya/pubs/blog/content/live</content-dir>
+  -->
+  <!--
+  <content-dir area="authoring">/home/USERNAME/data/blog/authoring</content-dir>
+  <content-dir area="live">D:\tmp\blog\live</content-dir>
+  -->
 </publication>

Modified: lenya/trunk/src/pubs/default/config/publication.xconf
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/pubs/default/config/publication.xconf?rev=380919&r1=380918&r2=380919&view=diff
==============================================================================
--- lenya/trunk/src/pubs/default/config/publication.xconf (original)
+++ lenya/trunk/src/pubs/default/config/publication.xconf Sat Feb 25 02:51:22 2006
@@ -41,6 +41,16 @@
   <module name="homepage"/>
   <module name="search"/>
   <module name="blog"/>
+
+  <!-- NOTE: The configuration of content directories has NOT been fully tested yet and might lead to unexpected results. Use at own risk ;-) -->
+  <!--
+  <content-dir area="authoring">lenya/pubs/default/content/authoring</content-dir>
+  <content-dir      area="live">lenya/pubs/default/content/live</content-dir>
+  -->
+  <!--
+  <content-dir area="authoring">/home/USERNAME/data/default/authoring</content-dir>
+  <content-dir area="live">D:\tmp\default\live</content-dir>
+  -->
   
   <!--
        For information about these settings, read 



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