diff options
author | mkersten <mkersten> | 2004-07-14 20:36:00 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2004-07-14 20:36:00 +0000 |
commit | 8dc08453232f9b4c1572ad0feb60979fb07336fe (patch) | |
tree | 3c68b0bb36fe383a59db0f702633ab9ecf8172a0 /ajdoc/src | |
parent | 2cc4826419d8c08e3879e600b82354fac2596241 (diff) | |
download | aspectj-8dc08453232f9b4c1572ad0feb60979fb07336fe.tar.gz aspectj-8dc08453232f9b4c1572ad0feb60979fb07336fe.zip |
Fixed bug#70008 "problem with ajdoc -public"
Diffstat (limited to 'ajdoc/src')
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java | 12 |
1 files changed, 10 insertions, 2 deletions
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 ) { |