Phillip Schichtel
06/30/2024, 1:31 AMProcessBuilder(command).inheritIO().start().waitFor() which is supposed to run the command and forward the subprocess outputs to gradle. The inheritIO() call is supposed to redirect the process'es standard outputs to the gradle process, but I don't see any console output when I let it run e.g. ping 1.1.1.1. If I try the same in a standalone program it works just fine. In the gradle plugin, when I manually read the subprocess'es standard out and write it to System.out, then it also works. So it seems that whatever IO streams the subprocess is inheriting, they are not connected to System.out/System.err.
Does anyone have any ideas on how to fix this?Chris Lee
06/30/2024, 2:28 AMPhillip Schichtel
06/30/2024, 2:32 AMPhillip Schichtel
06/30/2024, 2:42 AM