handling abnormal termination of the compiler

This commit is contained in:
Andrey Breslav
2012-02-07 12:52:38 +04:00
parent b0046348aa
commit 7683854908
@@ -130,7 +130,7 @@ public class JetCompiler implements TranslatingCompiler {
}
params.getVMParametersList().addParametersString("-Djava.awt.headless=true -Xmx512m");
//params.getVMParametersList().addParametersString("-agentlib:yjpagent=sampling");
// params.getVMParametersList().addParametersString("-agentlib:yjpagent=sampling");
Sdk sdk = params.getJdk();
@@ -193,6 +193,13 @@ public class JetCompiler implements TranslatingCompiler {
compileContext.addMessage(INFORMATION, text, "", -1, -1);
}
}
@Override
public void processTerminated(ProcessEvent event) {
if (event.getExitCode() != 0) {
compileContext.addMessage(ERROR, "Compiler terminated with exit code: " + event.getExitCode(), "", -1, -1);
}
}
});
processHandler.startNotify();