ModuleRepository repo = new ModuleRepository(SCLOsgi.SOURCE_REPOSITORY);
CommandSession session = null;
try {
- repo.setAdvisor(new ModuleCompilationOptionsAdvisor() {
-
- @Override
- public ModuleCompilationOptions getOptions(String moduleName) {
- // TODO: default to false
- boolean coverage = true;
- // TODO: add moduleName filters back
- // for (Pattern p : getModuleNameFilterPatterns()) {
- // if (p.matcher(moduleName.toLowerCase()).find()) {
- // coverage = true;
- // break;
- // }
- // }
- return new ModuleCompilationOptions(coverage);
- }
- });
+// repo.setAdvisor(new ModuleCompilationOptionsAdvisor() {
+//
+// @Override
+// public ModuleCompilationOptions getOptions(String moduleName) {
+// // TODO: default to false
+// boolean coverage = true;
+// // TODO: add moduleName filters back
+// // for (Pattern p : getModuleNameFilterPatterns()) {
+// // if (p.matcher(moduleName.toLowerCase()).find()) {
+// // coverage = true;
+// // break;
+// // }
+// // }
+// return new ModuleCompilationOptions(coverage);
+// }
+// });
SCLReportingHandler handler = (SCLReportingHandler) SCLContext.getCurrent().get(SCLReportingHandler.REPORTING_HANDLER);
session = new CommandSession(repo, handler);