forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r179855 - in /forrest/branches/locationmap_branch/main/webapp: WEB-INF/logkit.xconf WEB-INF/xconf/forrest-core.xconf sitemap.xmap
Date Fri, 03 Jun 2005 18:58:25 GMT
Author: rgardler
Date: Fri Jun  3 11:58:23 2005
New Revision: 179855

URL: http://svn.apache.org/viewcvs?rev=179855&view=rev
Log:
enable the locationmap

Modified:
    forrest/branches/locationmap_branch/main/webapp/WEB-INF/logkit.xconf
    forrest/branches/locationmap_branch/main/webapp/WEB-INF/xconf/forrest-core.xconf
    forrest/branches/locationmap_branch/main/webapp/sitemap.xmap

Modified: forrest/branches/locationmap_branch/main/webapp/WEB-INF/logkit.xconf
URL: http://svn.apache.org/viewcvs/forrest/branches/locationmap_branch/main/webapp/WEB-INF/logkit.xconf?rev=179855&r1=179854&r2=179855&view=diff
==============================================================================
--- forrest/branches/locationmap_branch/main/webapp/WEB-INF/logkit.xconf (original)
+++ forrest/branches/locationmap_branch/main/webapp/WEB-INF/logkit.xconf Fri Jun  3 11:58:23
2005
@@ -98,6 +98,30 @@
       </format>
       <append>false</append>
     </cocoon>
+    
+    <cocoon id="mapper">
+      <filename>${context-root}/WEB-INF/logs/mapper.log</filename>
+      <format type="cocoon">
+        %7.7{priority} %{time}   [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
+      </format>
+      <!--
+        append=false: Will override existing log files on Cocoon startup
+        append=true: Will append to the existing log files
+      -->
+      <append>false</append>
+      <!--
+        rotation: allows you to rotate log files one they meet certain
+                  criteria. In example below, files are rotated once they
+                  are one hour old or bigger than 100 Mb.
+
+      <rotation type="revolving" init="1" max="4">
+        <or>
+          <size>100m</size>
+          <time>01:00:00</time>
+        </or>
+      </rotation>
+      -->
+    </cocoon>
 
     <!--
       This log file gets only messages with log level ERROR and below.
@@ -197,6 +221,10 @@
 
       <log-target id-ref="sitemap"/>
       <log-target id-ref="error"/>
+    </category>
+    
+    <category name="mapper" log-level="INFO">
+        <log-target id-ref="mapper"/>
     </category>
     
     <category name="debug" log-level="DEBUG">

Modified: forrest/branches/locationmap_branch/main/webapp/WEB-INF/xconf/forrest-core.xconf
URL: http://svn.apache.org/viewcvs/forrest/branches/locationmap_branch/main/webapp/WEB-INF/xconf/forrest-core.xconf?rev=179855&r1=179854&r2=179855&view=diff
==============================================================================
--- forrest/branches/locationmap_branch/main/webapp/WEB-INF/xconf/forrest-core.xconf (original)
+++ forrest/branches/locationmap_branch/main/webapp/WEB-INF/xconf/forrest-core.xconf Fri Jun
 3 11:58:23 2005
@@ -173,6 +173,16 @@
     <component-instance
       class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
       logger="core.modules.mapper" name="site"/>
+      
+    <!-- LocationMap is used to map one URL to another, allowing content to be stored
anywhere -->
+    <component-instance 
+      class="org.apache.forrest.locationmap.LocationMapModule" 
+      logger="core.modules.mapper" name="lm">
+      <!-- FIXME: hard coded path - how do we get this from the property @project.home@/@project.locationmap@

+        currently this is relative to FORREST_HOME/main/webapp.
+        This means it will only work,at present, from FORREST_HOME/main/fresh-site -->
+      <file src="..\fresh-site\src\documentation\content\xdocs\locationmap.xml"/>
+    </component-instance>
 
     <!-- Links to external URIs, as distinct from 'site' URIs -->
     <component-instance

Modified: forrest/branches/locationmap_branch/main/webapp/sitemap.xmap
URL: http://svn.apache.org/viewcvs/forrest/branches/locationmap_branch/main/webapp/sitemap.xmap?rev=179855&r1=179854&r2=179855&view=diff
==============================================================================
--- forrest/branches/locationmap_branch/main/webapp/sitemap.xmap (original)
+++ forrest/branches/locationmap_branch/main/webapp/sitemap.xmap Fri Jun  3 11:58:23 2005
@@ -64,8 +64,9 @@
       <!-- See http://forrest.apache.org/docs/sitemap-ref.html#linkrewriting_impl -->
       <map:transformer name="linkrewriter" logger="sitemap.transformer.linkrewriter" src="org.apache.cocoon.transformation.LinkRewriterTransformer">
         <link-attrs>href src</link-attrs>
-        <schemes>site ext</schemes>
+        <schemes>site ext lm</schemes>
 
+        <input-module name="lm"/>
         <input-module name="site">
           <input-module name="linkmap">
             <file src="{src}" reloadable="true" />



Mime
View raw message