getCompileInput(executor))); // throws ProcessExecutingException
String line;
while ((line = reader.readLine()) != null) { // throws IOException
message.append(line + "\n");
}
int code = executor.waitForExit(); // throws ProcessExecutingException, InterruptedException
System.err.println("Compilation process exited with code " + code);
System.err.println("Compilation process was run for " + executor.getWorkTime());
if (executor.isOutOfTime()) {
throw new CompilationTimeLimitExceededException(
"Compilation process is out of time");