use of org.eclipse.ceylon.compiler.java.runtime.tools.ModuleNotFoundException in project ceylon by eclipse.
the class CeylonRunTool method startInFlatClasspath.
private void startInFlatClasspath(String module, String version) {
JavaRunnerOptions options = new JavaRunnerOptions();
if (repos != null) {
for (URI userRepository : repos) {
options.addUserRepository(userRepository.toASCIIString());
}
}
if (getCwd() != null) {
options.setWorkingDirectory(getCwd().getAbsolutePath());
}
options.setOffline(offline);
options.setSystemRepository(systemRepo);
options.setVerboseCategory(verbose);
options.setRun(prependModuleName(module, run));
options.setOverrides(overrides);
options.setDowngradeDist(!upgradeDist);
options.setExtraModules(extraModules);
try {
Runner runner = CeylonToolProvider.getRunner(Backend.Java, options, module, version);
runner.run(args.toArray(new String[args.size()]));
} catch (ModuleNotFoundException e) {
throw new CeylonRuntimeException(e.getMessage());
}
}
Aggregations