use of io.flutter.sdk.FlutterCommandStartResult in project flutter-intellij by flutter.
the class TestLaunchState method startProcess.
@NotNull
@Override
protected ProcessHandler startProcess() throws ExecutionException {
final RunMode mode = RunMode.fromEnv(getEnvironment());
final FlutterCommandStartResult result = fields.run(getEnvironment().getProject(), mode);
switch(result.status) {
case OK:
assert result.processHandler != null;
processHandler = result.processHandler;
return result.processHandler;
case EXCEPTION:
assert result.exception != null;
throw new ExecutionException(FlutterBundle.message("flutter.command.exception.message" + result.exception.getMessage()));
default:
throw new ExecutionException("Unexpected state");
}
}
Aggregations