From 8dc08453232f9b4c1572ad0feb60979fb07336fe Mon Sep 17 00:00:00 2001 From: mkersten Date: Wed, 14 Jul 2004 20:36:00 +0000 Subject: Fixed bug#70008 "problem with ajdoc -public" --- ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ajdoc/src') diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java index 655eb4aca..f189b6c61 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java @@ -112,6 +112,7 @@ class HtmlDecorator { filename = base + decl.getSignature() + ".html"; } if (!exceededNestingLevel) { + decorateHTMLFile(new File(filename)); decorateHTMLFromDecls(decl.getDeclarations(), @@ -137,9 +138,16 @@ class HtmlDecorator { } } + /** + * Skips files that are public in the model but not public in the source, + * e.g. nested aspects. + */ static void decorateHTMLFile(File file) throws IOException { - System.out.println( "> Decorating " + file.getCanonicalPath() + "..." ); - BufferedReader reader = new BufferedReader(new FileReader(file)); + if (!file.exists()) return; + + System.out.println( "> Decorating " + file.getCanonicalPath() + "..." ); + BufferedReader reader = new BufferedReader(new FileReader(file)); + StringBuffer fileContents = new StringBuffer(); String line = reader.readLine(); while( line != null ) { -- cgit v1.2.3