cziegeler    02/01/04 03:22:47

  Modified:    bin/src  SitemapTool.java
  Log:
  Updated sitemap tool to set the logger for a sitemap component
  
  Revision  Changes    Path
  1.4       +11 -3     xml-cocoon2/bin/src/SitemapTool.java
  
  Index: SitemapTool.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/bin/src/SitemapTool.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SitemapTool.java  23 Nov 2001 09:26:56 -0000      1.3
  +++ SitemapTool.java  4 Jan 2002 11:22:47 -0000       1.4
  @@ -15,7 +15,7 @@
    * Add components to the sitemap
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.3 $ $Date: 2001/11/23 09:26:56 $
  + * @version CVS $Revision: 1.4 $ $Date: 2002/01/04 11:22:47 $
    */
   
   public final class SitemapTool extends Task {
  @@ -162,8 +162,16 @@
                                 .append( "\"" ).toString() );
               if ( componentPos == -1 ) {
                   StringBuffer buffer = new StringBuffer( data.substring( 0, pos ) )
  -                            .append( "<map:" ).append( category.substring( 0, 
category.length() - 1 ) )
  -                            .append( " name=\"" ).append( componentName ).append( 
"\" src=\"" ).append( className ).append( "\"" );
  +                            .append( "<map:" )
  +                            .append( category.substring( 0, category.length() - 1 ) 
)
  +                            .append( " name=\"" )
  +                            .append( componentName )
  +                            .append( "\" src=\"" ).append( className ).append( "\"" 
)
  +                            .append( " logger=\"sitemap.")
  +                            .append( category.substring( 0, category.length() - 1 ) 
)
  +                            .append( '.' )
  +                            .append( componentName )
  +                            .append( '\"');
   
                   if ( null != mimeType && mimeType.length() > 0) {
                        buffer.append( " mime-type=\"" ).append( mimeType ).append( 
"\"" );
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to