cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r417207 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java
Date Mon, 26 Jun 2006 15:07:00 GMT
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



Mime
View raw message