use of org.jboss.tools.openshift.internal.ui.odo.ExecHelper.ExecResult in project jbosstools-openshift by jbosstools.
the class OdoCli method debugInfo.
@Override
public DebugInfo debugInfo(String project, String application, String context, String component) throws IOException {
try {
ExecResult result = ExecHelper.execute(command, new File(context), envVars, "debug", "info", "-o", "json");
JSonParser parser = new JSonParser(JSON_MAPPER.readTree(result.getStdOut()));
return parser.parseDebugInfo();
} catch (IOException e) {
if (e.getMessage().contains("debug is not running")) {
return new DebugInfo(DebugStatus.NOT_RUNNING);
}
throw e;
}
}
Aggregations