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