unico       2004/01/21 08:15:19

  Modified:    src/java/org/apache/cocoon/components/modules/input
                        XMLFileModule.java
  Log:
  absence of src attribute on a dynamic configuration is neccessarily an error
  for instance when used in combination with a meta module the static 
configuration
  of the delegating meta module will be passed in as dynamic configuration
  this will cause an inappropriate warning message each time the module is 
called
  
  Revision  Changes    Path
  1.11      +4 -8      
cocoon-2.1/src/java/org/apache/cocoon/components/modules/input/XMLFileModule.java
  
  Index: XMLFileModule.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/modules/input/XMLFileModule.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- XMLFileModule.java        23 Sep 2003 12:35:43 -0000      1.10
  +++ XMLFileModule.java        21 Jan 2004 16:15:19 -0000      1.11
  @@ -274,13 +274,9 @@
           if (modeConf != null) {
               fileConf = modeConf.getChild("file", false);
               if (fileConf == null) {
  -                getLogger().warn("Error: missing 'file' child element at 
"+modeConf.getLocation());
  -                /*
  -                throw new ConfigurationException(
  -                        "Error in dynamic configuration of XMLFileModule: " +
  -                        "missing 'file' child element at " + 
  -                        modeConf.getLocation());
  -                */
  +                if (getLogger().isDebugEnabled()) {
  +                    getLogger().debug("Missing 'file' child element at 
"+modeConf.getLocation());
  +                }
               } else {
                 hasDynamicConf = true;
               }
  
  
  

Reply via email to