You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2006/06/26 17:07:00 UTC

svn commit: r417207 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java

Author: cziegeler
Date: Mon Jun 26 08:06:59 2006
New Revision: 417207

URL: http://svn.apache.org/viewvc?rev=417207&view=rev
Log:
Always use default includes

Modified:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java?rev=417207&r1=417206&r2=417207&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java (original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java Mon Jun 26 08:06:59 2006
@@ -434,6 +434,15 @@
             tree = this.replaceProperties(tree, settings);
         }
 
+        // if we want to add the default includes and have no component section
+        // we have to create own!
+        if ( componentConfig == null && useDefaultIncludes ) {
+            componentConfig = new DefaultConfiguration("components",
+                                                       tree.getLocation(),
+                                                       tree.getNamespace(),
+                                                       "");
+        }
+
         if ( componentConfig != null ) {
             // before we pass the configuration we have to strip the
             // additional configuration parts, like classpath as these