in maven-jxr/src/main/java/org/apache/maven/jxr/DirectoryIndexer.java [199:230]
public void process() throws JxrException {
ProjectInfo info = getProjectInfo();
VelocityEngine engine = new VelocityEngine();
setProperties(engine);
try {
engine.init();
} catch (Exception e) {
throw new JxrException("Error initializing Velocity", e);
}
VelocityContext context = new VelocityContext();
context.put("outputEncoding", getOutputEncoding());
context.put("windowTitle", getWindowTitle());
context.put("docTitle", getDocTitle());
context.put("bottom", getBottom());
context.put("info", info);
doVelocity("index", root, context, engine);
doVelocity("overview-frame", root, context, engine);
doVelocity("allclasses-frame", root, context, engine);
doVelocity("overview-summary", root, context, engine);
for (PackageInfo pkgInfo : info.getAllPackages().values()) {
VelocityContext subContext = new VelocityContext(context);
subContext.put("pkgInfo", pkgInfo);
String outDir = root + '/' + pkgInfo.getDir();
doVelocity("package-summary", outDir, subContext, engine);
doVelocity("package-frame", outDir, subContext, engine);
}
}