cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r230770 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/IncludeTransformer.java
Date Mon, 08 Aug 2005 07:53:23 GMT
Author: antonio
Date: Mon Aug  8 00:53:20 2005
New Revision: 230770

URL: http://svn.apache.org/viewcvs?rev=230770&view=rev
Log:
Fix NoSuchMethodError.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/IncludeTransformer.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/IncludeTransformer.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/IncludeTransformer.java?rev=230770&r1=230769&r2=230770&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/IncludeTransformer.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/transformation/IncludeTransformer.java
Mon Aug  8 00:53:20 2005
@@ -20,6 +20,7 @@
 import org.apache.avalon.framework.configuration.Configurable;
 import org.apache.avalon.framework.configuration.Configuration;
 import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
 import org.apache.avalon.framework.logger.Logger;
 import org.apache.avalon.framework.parameters.Parameters;
 import org.apache.avalon.framework.service.ServiceException;
@@ -458,7 +459,7 @@
     /**
      * Description of the include element
      */
-    private class IncludeElement {
+    private class IncludeElement extends AbstractLogEnabled {
         /** Parameter controlling recursive includes processing */
         private boolean recursive;
 
@@ -491,13 +492,14 @@
 
         /** The current parameter value (as a {@link StringBuffer}). */
         private StringBuffer value;
-
+        
         /** Create include element */
-        private IncludeElement(String base, boolean parallel, boolean recursive, boolean
recursiveParallel) {
+        private IncludeElement(String base, boolean parallel, boolean recursive, boolean
recursiveParallel, Logger logger) {
             this.base = base;
             this.parallel = parallel;
             this.recursive = recursive;
             this.recursiveParallel = recursiveParallel;
+            this.enableLogging(logger);
         }
 
         /**
@@ -778,7 +780,7 @@
                     if (element != null) {
                         throw new SAXException("Element " + INCLUDE_ELEMENT + " nested in
another one.");
                     }
-                    element = new IncludeElement(this.base, this.parallel, this.recursive,
this.recursiveParallel);
+                    element = new IncludeElement(this.base, this.parallel, this.recursive,
this.recursiveParallel, getLogger());
 
                     /* Remember the source we are trying to include */
                     element.source = atts.getValue(SRC_ATTRIBUTE);



Mime
View raw message