From 0ca82fdb03ce68e1371e5af05b97c9696f83b51a Mon Sep 17 00:00:00 2001 From: Knut Wannheden Date: Fri, 10 Jun 2022 15:46:41 +0200 Subject: [PATCH] Fix container build logging In Quarkus 2.10.CR1, the container build (e.g. Docker) performed by Quarkus does not log any output anymore. This appears to be caused by the refactoring in commit 418d986f7ea21f93aef3490921f436612bcfe141, as the `Runnable#run()` method is never called in `ExecUtil#exec()` on the `Runnable` returned by `outputFilterFunction`. --- .../src/main/java/io/quarkus/deployment/util/ExecUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/util/ExecUtil.java b/core/deployment/src/main/java/io/quarkus/deployment/util/ExecUtil.java index 51bd4dd8cb9df..2d61e0831e376 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/util/ExecUtil.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/util/ExecUtil.java @@ -163,7 +163,7 @@ public static boolean exec(File directory, Function outpu String... args) { try { Process process = startProcess(directory, command, args); - outputFilterFunction.apply(process.getInputStream()); + outputFilterFunction.apply(process.getInputStream()).run(); process.waitFor(); return process.exitValue() == 0; } catch (InterruptedException e) {