Silence the AT tool properly

This commit is contained in:
Juuxel
2021-06-29 13:49:58 +03:00
parent b59a01ffa7
commit 80a412c8c0

View File

@@ -402,6 +402,9 @@ public class MinecraftPatchedProvider extends DependencyProvider {
// if running with INFO or DEBUG logging
if (getProject().getGradle().getStartParameter().getLogLevel().compareTo(LogLevel.LIFECYCLE) < 0) {
spec.setStandardOutput(System.out);
} else {
spec.setStandardOutput(NullOutputStream.NULL_OUTPUT_STREAM);
spec.setErrorOutput(NullOutputStream.NULL_OUTPUT_STREAM);
}
}).rethrowFailure().assertNormalExitValue();
}