use of org.eclipse.n4js.runner.RunConfiguration in project n4js by eclipse.
the class RunExternalLibrariesPluginTest method runClient.
private ProcessResult runClient() {
final String pathToModuleToRun = getResourceName(CLIENT, CLIENT_MODULE);
final org.eclipse.emf.common.util.URI moduleToRun = createPlatformResourceURI(pathToModuleToRun, true);
final RunConfiguration config = runnerFrontEnd.createConfiguration(ID, null, moduleToRun);
final Process process = runnerFrontEndUI.runInUI(config);
final ProcessResult result = processExecutor.execute(process, "", OutputRedirection.REDIRECT);
if (result.isOK())
return result;
throw new RuntimeException("Client exited with error.\n" + result);
}
Aggregations