User: rinkrank
  Date: 02/05/13 15:39:14

  Modified:    src/xjavadoc/ant XJavadocTask.java
  Log:
  Removing shell scripts that set up classpath
  Better error reporting in case of OutOfMemoryError
  Some doc changes
  
  Revision  Changes    Path
  1.16      +9 -0      xjavadoc/src/xjavadoc/ant/XJavadocTask.java
  
  Index: XJavadocTask.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/ant/XJavadocTask.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -w -r1.15 -r1.16
  --- XJavadocTask.java 13 May 2002 22:27:12 -0000      1.15
  +++ XJavadocTask.java 13 May 2002 22:39:14 -0000      1.16
  @@ -57,6 +57,7 @@
         */
        public final void execute() throws BuildException
        {
  +             XJavaDoc.getInstance().reset();
                try
                {
                        validateOptions();
  @@ -76,6 +77,14 @@
                        }
   
                        start();
  +             }
  +             catch( OutOfMemoryError e )
  +             {
  +                     System.err.println( e.getMessage() );
  +                     XJavaDoc.printMemoryStatus();
  +                     System.err.println( "Try to increase heap size. Can be done by 
defining ANT_OPTS=-Xmx640m" );
  +                     System.err.println( "See the JDK tooldocs." );
  +                     throw new BuildException( e.getMessage(), e, location );
                }
                catch( Throwable t )
                {
  
  
  

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to