jvanzyl     2004/04/12 16:44:28

  Modified:    maven-plugins/maven-xdoc-plugin/src/main/java/org/apache/maven/xdoc
                        XdocPlugin.java
  Log:
  o simple fix for the time being to show what xdocs contain errors and allow
    the rendering of the rest of the xdocs to proceed. What's needed is a
    rendering result chich contains the stats for general reporting and
    exception detailing.
  
  Revision  Changes    Path
  1.6       +11 -2     
maven-components/maven-plugins/maven-xdoc-plugin/src/main/java/org/apache/maven/xdoc/XdocPlugin.java
  
  Index: XdocPlugin.java
  ===================================================================
  RCS file: 
/home/cvs/maven-components/maven-plugins/maven-xdoc-plugin/src/main/java/org/apache/maven/xdoc/XdocPlugin.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XdocPlugin.java   8 Apr 2004 00:50:33 -0000       1.5
  +++ XdocPlugin.java   12 Apr 2004 23:44:28 -0000      1.6
  @@ -60,7 +60,16 @@
   
           for ( Iterator i = files.iterator(); i.hasNext(); )
           {
  -            renderer.render( (String) i.next(), xdocDirectory, project, 
outputDirectory );
  +            String file = (String) i.next();
  +
  +            try
  +            {
  +                renderer.render( file, xdocDirectory, project, outputDirectory );
  +            }
  +            catch ( Exception e )
  +            {
  +                System.out.println( "error rendering: " + file );
  +            }
           }
   
           // Copy style directory
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to