public static void generate(Configuration configuration) {
        PackageListWriter packgen;
        try {
            packgen = new PackageListWriter(configuration);
            packgen.generatePackageListFile(configuration.root);
            packgen.close();
        } catch (IOException exc) {
            configuration.message.error("doclet.exception_encountered",
                exc.toString(), DocPaths.PACKAGE_LIST);
            throw new DocletAbortException(exc);
        }
    }
public static void generate ( Configuration configuration ) { PackageListWriter packgen ; try { packgen = new PackageListWriter ( configuration ) ; packgen . generatePackageListFile ( configuration . root ) ; packgen . close ( ) ; } catch ( IOException exc ) { configuration . message . error ( "doclet.exception_encountered" , exc . toString ( ) , DocPaths . PACKAGE_LIST ) ; throw new DocletAbortException ( exc ) ; } }
Generate the package index.

@param configuration the current configuration of the doclet.
@throws DocletAbortException