Skip to content
Snippets Groups Projects
Commit 52a75e16 authored by Michael Leuschel's avatar Michael Leuschel
Browse files

remove process.waitFor and exitValue() check, was blocking Rodin

parent c6cae908
No related branches found
No related tags found
No related merge requests found
...@@ -122,13 +122,12 @@ public class OpenClassicHandler extends AbstractHandler implements IHandler { ...@@ -122,13 +122,12 @@ public class OpenClassicHandler extends AbstractHandler implements IHandler {
new InputStreamReader(process.getInputStream())); new InputStreamReader(process.getInputStream()));
new Thread(new ClassicConsole(output)).start(); new Thread(new ClassicConsole(output)).start();
process.waitFor(); // I hope this will not block Rodin // process.waitFor(); // this blocks Rodin
// if (process.exitValue() != 0) {
if (process.exitValue() != 0) { // Logger.notifyUserWithoutBugreport("Failed to launch ProB2UI with java -jar" + probBinary + ". Exit code: " + process.exitValue());
Logger.notifyUserWithoutBugreport("Failed to launch ProB2UI with java -jar" + probBinary + ". Exit code: " + process.exitValue()); // }
} // } catch (IOException | InterruptedException e) {
} catch (IOException e) {
} catch (IOException | InterruptedException e) {
Logger.notifyUserWithoutBugreport("You need to specify a correct location for " Logger.notifyUserWithoutBugreport("You need to specify a correct location for "
+ PROB2_NAME + ". See Preferences -> ProB Standalone.\n" + PROB2_NAME + ". See Preferences -> ProB Standalone.\n"
+ PROB2_NAME + " location: "+ probBinary + + PROB2_NAME + " location: "+ probBinary +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment