avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/data/writer XMLComponentProfileWriter.java
Date Thu, 11 Mar 2004 09:37:08 GMT
mcconnell    2004/03/11 01:37:08

  Modified:    merlin/composition/impl/src/java/org/apache/avalon/composition/data/writer
                        XMLComponentProfileWriter.java
  Log:
  Bring profile writer up-to-date to support nested logging categories directive externalization.
  
  Revision  Changes    Path
  1.7       +12 -2     avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/data/writer/XMLComponentProfileWriter.java
  
  Index: XMLComponentProfileWriter.java
  ===================================================================
  RCS file: /home/cvs/avalon/merlin/composition/impl/src/java/org/apache/avalon/composition/data/writer/XMLComponentProfileWriter.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XMLComponentProfileWriter.java	10 Mar 2004 10:52:18 -0000	1.6
  +++ XMLComponentProfileWriter.java	11 Mar 2004 09:37:08 -0000	1.7
  @@ -303,7 +303,16 @@
               final String padding = pad + INDENT;
               for( int i=0; i<cats.length; i++ )
               {
  -                writeCategoryDirective( writer, cats[i], padding );
  +                CategoryDirective cat = cats[i];
  +                if( cat instanceof CategoriesDirective )
  +                {
  +                    writeCategories( 
  +                      writer, (CategoriesDirective) cat, padding );
  +                }
  +                else
  +                {
  +                    writeCategoryDirective( writer, cat, padding );
  +                }
               }
               writer.write( "\n" + pad + "</categories>" );
           }
  @@ -312,6 +321,7 @@
               writer.write( "/>" );
           }
       }
  +
   
       /**
        * Write out xml representation of the logging categories
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message