modules.add(Resources.get(m, "failed to load module"));
}
return modules;
} finally {
restoreProps(origProps);
pool.releaseExec(exec);
}
}
public static CountDownLatch invokeModulesMain(final File modulesRepo, final String mainModule, final String... args) {
return invokeModulesMain(mainModule, modulesRepo, mainModule, args);