try {
OutputWriter buildOutput = tab.getIo().getOutRef();
if (GlobalGradleSettings.getAlwaysClearOutput().getValue()
|| taskDef.isCleanOutput()) {
buildOutput.reset();
// There is no need to reset buildErrOutput,
// at least this is what NetBeans tells you in its
// logs if you do.
}
printCommand(buildOutput, command, taskDef);