[Nice-commit] Nice/src/nice/tools/doc htmlwriter.nice,1.4,1.5
Brought to you by:
bonniot
From: Francis B. <fb...@us...> - 2004-03-20 05:12:33
|
Update of /cvsroot/nice/Nice/src/nice/tools/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27160/src/nice/tools/doc Modified Files: htmlwriter.nice Log Message: Added more information to the method names in the package index. Rather than just having the method name, it now displays <a>foo</a>: (String, int)->String, for example. Index: htmlwriter.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/doc/htmlwriter.nice,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** htmlwriter.nice 14 Mar 2004 14:49:36 -0000 1.4 --- htmlwriter.nice 20 Mar 2004 05:02:38 -0000 1.5 *************** *** 84,91 **** //Initialise a FileWriter File dir = new File(outdir, packageName.replace('.','/')); ! if(!dir.exists()) { ! if(!dir.mkdirs()) { ! System.err.println("Error creating directory structure"); ! } } String fileName = m.getName().toString(); --- 84,89 ---- //Initialise a FileWriter File dir = new File(outdir, packageName.replace('.','/')); ! if(!dir.exists() && !dir.mkdirs()) { ! System.err.println("Error creating directory structure"); } String fileName = m.getName().toString(); *************** *** 128,135 **** try { File dir = new File(outdir, p.getName().replace('.','/')); ! if(!dir.exists()) { ! if(!dir.mkdirs()) { System.err.println("Error creating directory structure"); - } } BufferedWriter writer = new BufferedWriter --- 126,131 ---- try { File dir = new File(outdir, p.getName().replace('.','/')); ! if(!dir.exists() && !dir.mkdirs()) { System.err.println("Error creating directory structure"); } BufferedWriter writer = new BufferedWriter *************** *** 171,175 **** writer.write("<ul>\n"); for(MethodDeclaration m : methods) { ! writer.write("<li><a href='" + m.getName() + ".html'>" + m.getName() + "</a></li>\n"); } writer.write("</ul>\n"); --- 167,172 ---- writer.write("<ul>\n"); for(MethodDeclaration m : methods) { ! writer.write("<li><a href='" + m.getName() + ".html'>" + m.getName() + "</a>" + ! ": " + m.getType() + "</li>\n"); } writer.write("</ul>\n"); |