/[classpath]/gjdoc/src/gnu/classpath/tools/gjdoc/RootDocImpl.java
ViewVC logotype

Diff of /gjdoc/src/gnu/classpath/tools/gjdoc/RootDocImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by julian, Fri Jan 17 01:05:27 2003 UTC revision 1.5 by julian, Sun Nov 21 16:35:46 2004 UTC
# Line 25  import java.util.*; Line 25  import java.util.*;
25  import java.io.*;  import java.io.*;
26  import java.lang.reflect.*;  import java.lang.reflect.*;
27    
28  public class RootDocImpl extends DocImpl implements RootDoc {  public class RootDocImpl extends DocImpl implements GjdocRootDoc {
29    
30     private ErrorReporter reporter = new ErrorReporter();     private ErrorReporter reporter = new ErrorReporter();
31    
# Line 203  public class RootDocImpl extends DocImpl Line 203  public class RootDocImpl extends DocImpl
203        }        }
204        else {        else {
205    
          printNotice("For now, please make sure that you include the core source directory\nin -sourcepath");  
206           Debug.log(1, "Sourcepath is "+sourcePath);           Debug.log(1, "Sourcepath is "+sourcePath);
207    
208           // Core docs not included in source-path:           // Core docs not included in source-path:
# Line 370  public class RootDocImpl extends DocImpl Line 369  public class RootDocImpl extends DocImpl
369        if (null==rc) {        if (null==rc) {
370           rc=new PackageDocImpl(packageName);           rc=new PackageDocImpl(packageName);
371           if (specifiedPackageNames.contains(packageName)) {           if (specifiedPackageNames.contains(packageName)) {
372              File packageDocFile=findSourceFile(packageName.replace('.',File.separatorChar)+File.separatorChar+"package.html");              String packageDirectoryName = packageName.replace('.', File.separatorChar);
373              if (null!=packageDocFile) {              File packageDirectory = findSourceFile(packageDirectoryName);
374                File packageDocFile = new File(packageDirectory, "package.html");
375                rc.setPackageDirectory(packageDirectory);
376                if (null!=packageDocFile && packageDocFile.exists()) {
377                 try {                 try {
378                    long packageDocSize=packageDocFile.length();                    long packageDocSize=packageDocFile.length();
379                    char[] packageDocBuf=new char[(int)(packageDocSize)];                    char[] packageDocBuf=new char[(int)(packageDocSize)];
# Line 399  public class RootDocImpl extends DocImpl Line 401  public class RootDocImpl extends DocImpl
401                       if (start != -1 && start < end)                       if (start != -1 && start < end)
402                          html = html.substring(start, end);                          html = html.substring(start, end);
403                    }                    }
   
404                    rc.setRawCommentText(html.trim());                    rc.setRawCommentText(html.trim());
405                 }                 }
406                 catch (IOException e) {                 catch (IOException e) {
# Line 715  public class RootDocImpl extends DocImpl Line 716  public class RootDocImpl extends DocImpl
716     public void finalize() throws Throwable {     public void finalize() throws Throwable {
717        super.finalize();        super.finalize();
718     }     }
719    
720       public void flush()
721       {
722          rawCommentCache = null;
723          customOptionArr = null;
724          specifiedClassNames = null;
725          specifiedPackageNames = null;
726          classesList = null;
727          classDocMap = null;
728          packageDocMap = null;
729          classes = null;
730          specifiedClasses = null;
731          specifiedPackages = null;
732          scheduledClasses = null;
733          sourcePath = null;
734       }
735  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26