This is my preferred syntax for getting the stdout from exec: def stdout = new ByteArrayOutputStream() exec{ commandLine "whoami" standardOutput = stdout; } ...
確定! 回上一頁