cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/components/language/generator ProgramGeneratorImpl.java
Date Tue, 20 Feb 2001 20:46:39 GMT
bloritsch    01/02/20 12:46:38

  Modified:    src/org/apache/cocoon/components/language/generator Tag:
                        xml-cocoon2 ProgramGeneratorImpl.java
  Log:
  Make the ServerPagesSelector a globally accessible item.  This will allow recursive
  calls to the sitemap.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.33  +11 -1     xml-cocoon/src/org/apache/cocoon/components/language/generator/Attic/ProgramGeneratorImpl.java
  
  Index: ProgramGeneratorImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/generator/Attic/ProgramGeneratorImpl.java,v
  retrieving revision 1.1.2.32
  retrieving revision 1.1.2.33
  diff -u -r1.1.2.32 -r1.1.2.33
  --- ProgramGeneratorImpl.java	2001/02/20 20:34:15	1.1.2.32
  +++ ProgramGeneratorImpl.java	2001/02/20 20:46:34	1.1.2.33
  @@ -32,6 +32,7 @@
   import org.apache.cocoon.Roles;
   import org.apache.cocoon.components.store.Store;
   import org.apache.cocoon.components.language.LanguageException;
  +import org.apache.cocoon.components.language.markup.sitemap.SitemapMarkupLanguage;
   import org.apache.cocoon.components.language.markup.MarkupLanguage;
   import org.apache.cocoon.components.language.programming.CodeFormatter;
   import org.apache.cocoon.components.language.programming.ProgrammingLanguage;
  @@ -45,7 +46,7 @@
   /**
    * The default implementation of <code>ProgramGenerator</code>
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version CVS $Revision: 1.1.2.32 $ $Date: 2001/02/20 20:34:15 $
  + * @version CVS $Revision: 1.1.2.33 $ $Date: 2001/02/20 20:46:34 $
    */
   public class ProgramGeneratorImpl extends AbstractLoggable implements ProgramGenerator,
Contextualizable, Composer, Configurable, ThreadSafe {
   
  @@ -205,6 +206,15 @@
           Class program = programmingLanguage.load(normalizedName, this.workDir, markupLanguage.getEncoding());
           // Store generated program in cache
           this.cache.addGenerator(normalizedName, program);
  +
  +        if (markupLanguage.getClass().getName().equals(SitemapMarkupLanguage.class.getName()))
{
  +            try {
  +                this.cache.select("sitemap");
  +            } catch (Exception e) {
  +                // If the root sitemap has not been compiled, add an alias here.
  +                this.cache.addGenerator("sitemap", program);
  +            }
  +        }
   
           return program;
       }
  
  
  

Mime
View raw message