You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2006/02/08 21:02:04 UTC

svn commit: r376037 - in /lenya/trunk/src/modules/notification: java/src/org/apache/lenya/notification/DefaultNotifier.java sitemap.xmap

Author: chestnut
Date: Wed Feb  8 12:02:02 2006
New Revision: 376037

URL: http://svn.apache.org/viewcvs?rev=376037&view=rev
Log:
changed outdated cocoon://core/modules reference to cocoon://modules and added a sitemap to handle the message.xml request.

Added:
    lenya/trunk/src/modules/notification/sitemap.xmap   (with props)
Modified:
    lenya/trunk/src/modules/notification/java/src/org/apache/lenya/notification/DefaultNotifier.java

Modified: lenya/trunk/src/modules/notification/java/src/org/apache/lenya/notification/DefaultNotifier.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/notification/java/src/org/apache/lenya/notification/DefaultNotifier.java?rev=376037&r1=376036&r2=376037&view=diff
==============================================================================
--- lenya/trunk/src/modules/notification/java/src/org/apache/lenya/notification/DefaultNotifier.java (original)
+++ lenya/trunk/src/modules/notification/java/src/org/apache/lenya/notification/DefaultNotifier.java Wed Feb  8 12:02:02 2006
@@ -158,7 +158,7 @@
             parameters.put("locale", locale);
             
             resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);
-            source = resolver.resolveURI("cocoon://core/modules/notification/notification/message.xml",
+            source = resolver.resolveURI("cocoon://modules/notification/message.xml",
                     null,
                     parameters);
 

Added: lenya/trunk/src/modules/notification/sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/notification/sitemap.xmap?rev=376037&view=auto
==============================================================================
--- lenya/trunk/src/modules/notification/sitemap.xmap (added)
+++ lenya/trunk/src/modules/notification/sitemap.xmap Wed Feb  8 12:02:02 2006
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+  <map:pipelines>
+
+    <map:pipeline>
+      <map:match pattern="message.xml">
+      
+        <map:generate src="fallback://lenya/modules/notification/content/message.xml"/>
+        <map:serialize type="xml"/>
+        
+      </map:match>
+    </map:pipeline>
+    
+  </map:pipelines>
+</map:sitemap>

Propchange: lenya/trunk/src/modules/notification/sitemap.xmap
------------------------------------------------------------------------------
    svn:eol-style = native



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