cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon Cocoon.java
Date Mon, 06 Oct 2003 15:59:52 GMT
cziegeler    2003/10/06 08:59:52

  Modified:    src/java/org/apache/cocoon Cocoon.java
  Log:
  Releasing source
  
  Revision  Changes    Path
  1.16      +5 -3      cocoon-2.1/src/java/org/apache/cocoon/Cocoon.java
  
  Index: Cocoon.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/Cocoon.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Cocoon.java	9 Sep 2003 19:03:44 -0000	1.15
  +++ Cocoon.java	6 Oct 2003 15:59:52 -0000	1.16
  @@ -734,20 +734,22 @@
                              String programmingLanguage)
       throws Exception {
           ProgramGenerator programGenerator = null;
  +        Source source = null;
           try {
               if (getLogger().isDebugEnabled()) {
                   getLogger().debug("XSP generation begin:" + fileName);
               }
   
               programGenerator = (ProgramGenerator) this.componentManager.lookup(ProgramGenerator.ROLE);
  -
  +            source = environment.resolveURI(fileName);
               CompiledComponent xsp = programGenerator.load(this.componentManager,
  -                    environment.resolveURI(fileName),
  +                    source,
                       markupLanguage, programmingLanguage, environment);
               if (getLogger().isDebugEnabled()) {
                   getLogger().debug("XSP generation complete:" + xsp);
               }
           } finally {
  +            environment.release(source);
               this.componentManager.release(programGenerator);
           }
       }
  
  
  

Mime
View raw message