maxClassesInReport, new ClassIssues.TotalCostComparator()), hypotheticalCostModel);
ReportOptions options = new ReportOptions(cyclomaticCost, globalCost, constructorMultiplier,
maxExcellentCost, maxAcceptableCost, maxClassesInReport, -1, -1, printDepth, -1, "", "");
SourceLoader sourceLoader = new SourceLoader(classPath);
AnalysisModel analysisModel = new AnalysisModel(issuesReporter);
ReportModel reportModel = new HtmlReportModel(costModel, analysisModel, options);
ReportGenerator report = new ReportGeneratorProvider(classPath, options,
reportStream, hypotheticalCostModel, ReportFormat.html).build(costModel, reportModel, sourceLoader);
new JavaTestabilityRunner(report, classPath, classRepository, computer, allJavaPackages, whitelist, errorStream).run();
boolean runningInCompilationMode = configuration.getAttribute(
TestabilityConstants.CONFIGURATION_ATTR_RUNNING_IN_COMPILATION_MODE, false);
notifyAllListeners(options, analysisModel.getWorstOffenders(), javaProject, reportDirectory,
runningInCompilationMode);
reportStream.flush();
reportStream.close();
} catch (Exception e) {