Extended commentParser.java to the standalone java app to print parsed comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
32166f96f4
commit
3a3c2b8063
1 changed files with 24 additions and 0 deletions
|
|
@ -58,4 +58,28 @@ public class commentParser {
|
|||
|
||||
return errorCount;
|
||||
}
|
||||
|
||||
public static void printCommentListForJavaSource() {
|
||||
Iterator< Entry<String, String> > it = parsedComments.entrySet().iterator();
|
||||
while (it.hasNext())
|
||||
{
|
||||
Entry<String, String> e = (Entry<String, String>) it.next();
|
||||
System.out.format("wantedComments.put(\"%s\", \"%s\");\n", e.getKey(), e.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String argv[]) {
|
||||
|
||||
if (argv.length<1) {
|
||||
System.out.format("Usage:\n\tcommentParsing <package to parse>\n");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
com.sun.tools.javadoc.Main.execute("The comment parser program",
|
||||
"commentParser", new String[]{"-quiet", argv[0]});
|
||||
|
||||
// if we are run as standalone app, print the list of found comments as it would appear in java source
|
||||
|
||||
printCommentListForJavaSource();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue