}
classpath = ClasspathRootFactory.makeClasspathRootGroup(cp);
if (printer.equals("summary")) {
report = new TextReport(out, maxExcellentCost, maxAcceptableCost, worstOffenderCount);
} else if (printer.equals("html")) {
report = new HtmlReport(out, maxExcellentCost, maxAcceptableCost, worstOffenderCount);
} else if (printer.equals("detail")) {
report = new DrillDownReport(out, entryList, printDepth, minCost);
} else {
throw new CmdLineException("Don't understand '-print' option '"
+ printer + "'");