Generate the file.
PackagesFileWriter packgen;
String filename = "";
try {
filename = "packages.html";
packgen = new PackagesFileWriter(filename);
packgen.generatePackagesFile();
packgen.close();
} catch (IOException exc) {
Standard.configuration().standardmessage.error(
"doclet.exception_encountered",
exc.toString(), filename);
throw new DocletAbortException();
}