void (@NotNull ProcessEvent event) { int exitCode = event.getExitCode(); if (exitCode != 0) { context.processMessage(new CompilerMessage(BUILDER_NAME, BuildMessage.Kind.ERROR, errorOutput.toString())); String message = AntJpsBundle.message("target.finished.with.exit.code", targetName, buildFilePath, exitCode); context.processMessage(new CompilerMessage(BUILDER_NAME, BuildMessage.Kind.ERROR, message)); hasErrors.set(true); } }