" -classpath <pathlist> Specify where to find user class files\n" +
" -bootclasspath <pathlist> Override location of class files loaded\n" +
" -d <directory> Destination directory for output files\n" +
+ " -windowtitle <text> Browser window title for the documenation" +
+ " -bottom <html-code> Include bottom text for each page" +
+ " -link <url> Create links to javadoc output at <url>" +
" -argfile <file> Build config file (wildcards not supported)\n" +
" -verbose Output messages about what Javadoc is doing\n" +
" -v Print out the version of ajdoc\n" +
inputFiles,
docModifier);
- System.out.println( "> Removing generated tags (this may take a while)..." );
+ System.out.println( "> Removing generated tags..." );
removeDeclIDsFromFile("index-all.html", true);
removeDeclIDsFromFile("serialized-form.html", true);
if (packageList.size() > 0) {
try {
if ( indexFile.exists() ) {
BufferedReader indexFileReader = new BufferedReader( new FileReader( indexFile ) );
- String indexFileBuffer = "";
+ // StringBuffer greatly reduces the time it takes to remove generated tags
+ StringBuffer indexFileBuffer = new StringBuffer((int)indexFile.length());
String line = indexFileReader.readLine();
while ( line != null ) {
int indexStart = line.indexOf( Config.DECL_ID_STRING );
line = line.substring( 0, indexStart ) +
line.substring( indexEnd+Config.DECL_ID_TERMINATOR.length() );
}
- indexFileBuffer += line;
+ indexFileBuffer.append(line);
line = indexFileReader.readLine();
}
FileOutputStream fos = new FileOutputStream( indexFile );
- fos.write( indexFileBuffer.getBytes() );
+ fos.write( indexFileBuffer.toString().getBytes() );
indexFileReader.close();
fos.close();
addNextAsSourcePath = true;
//options.addElement( arg );
//ajcOptions.addElement( arg );
+ } else if ( arg.equals( "-link" ) ) {
+ addNextAsOption = true;
+ options.addElement(arg);
+ } else if ( arg.equals( "-bottom" ) ) {
+ addNextAsOption = true;
+ options.addElement(arg);
+ } else if ( arg.equals( "-windowtitle" ) ) {
+ addNextAsOption = true;
+ options.addElement(arg);
} else if (arg.equals("-XajdocDebug")) {
deleteTempFilesOnExit = false;
} else if (arg.equals("-use")) {