Changeset 538
- Timestamp:
- 13-05-10 20:20:19 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Configuration-Documentation-Generator/trunk/src/cdg/AsConfigDocParser.java
r326 r538 15 15 import java.io.IOException; 16 16 import java.util.ArrayList; 17 import java.util.Arrays; 17 18 import java.util.Date; 18 19 import nl.fmc.configuration.Attribute; … … 59 60 private ArrayList asFiles=null; 60 61 private ArrayList flaFiles=null; 62 private ArrayList<String> succesFiles=new ArrayList(); 61 63 private BufferedWriter indexWriter; 62 64 /** Creates a new instance of AsConfigDocParser */ … … 82 84 }catch(IOException ioe){ 83 85 throw ioe; 84 }finally{ 86 }finally{ 87 //sort the ahrefs. 88 String[] ahrefs = new String[succesFiles.size()]; 89 succesFiles.toArray(ahrefs); 90 Arrays.sort(ahrefs); 91 for (int i=0; i < ahrefs.length; i++){ 92 indexWriter.append(ahrefs[i]); 93 } 85 94 indexWriter.append("\n</body>\n</html>"); 86 95 indexWriter.close(); … … 137 146 boolean success=parseAsFile2Doc(file,newFile); 138 147 if (success){ 139 indexWriter.append("<a href=\""+newFileString+"\">"+(file.getName().substring(0,file.getName().length()-3))+"</a><br/>\n");148 succesFiles.add("<a href=\""+newFileString+"\">"+(file.getName().substring(0,file.getName().length()-3))+"</a><br/>\n"); 140 149 } 141 150 } … … 171 180 } 172 181 }else{ 173 System.out.println("Can't create xml: "+dest.getAbsolutePath() );182 System.out.println("Can't create xml: "+dest.getAbsolutePath()+" no @component found."); 174 183 doDelete=true; 175 184 }
Note: See TracChangeset
for help on using the changeset viewer.