in maven-jxr/src/main/java/org/apache/maven/jxr/JXR.java [208:230]
public void xref(List<String> sourceDirs, String templateDir, String windowTitle, String docTitle, String bottom)
throws IOException, JxrException {
pkgmgr.setExcludes(excludes);
pkgmgr.setIncludes(includes);
// go through each source directory and xref the java files
for (String dir : sourceDirs) {
Path path = Paths.get(dir).toRealPath();
pkgmgr.process(path);
processPath(pkgmgr, path, bottom);
}
// once we have all the source files xref'd, create the index pages
DirectoryIndexer indexer = new DirectoryIndexer(pkgmgr, destDir.toString());
indexer.setOutputEncoding(outputEncoding);
indexer.setTemplateDir(templateDir);
indexer.setWindowTitle(windowTitle);
indexer.setDocTitle(docTitle);
indexer.setBottom(bottom);
indexer.process();
}