printCommand(buildOutput, command, taskDef);
try (OutputRef outputRef = configureOutput(project, taskDef, buildLauncher, tab)) {
assert outputRef != null; // Avoid warning
InputOutputWrapper io = tab.getIo();
io.getIo().select();
if (checkTaskExecutable(projectConnection, taskDef, targetSetup, io)) {
runBuild(cancelToken, buildLauncher);
taskDef.getSuccessfulCommandFinalizer().finalizeSuccessfulCommand(
buildOutput,
io.getErrRef());
}
}
} catch (Throwable ex) {
Level logLevel;