jieling
grimm 2024-04-18 22:10:31 +08:00
parent 3a3aedf184
commit e964b37af2
1 changed files with 4 additions and 2 deletions

View File

@ -353,9 +353,11 @@ public class AutoServerManager {
*/
public static void readProcessOutput(final Process process) {
// 将进程的正常输出在 System.out 中打印,进程的错误输出在 System.err 中打印
List<String> read = read(process.getInputStream(), System.out);
List<String> read = new ArrayList<>();
read.add("out开始===================================");
read.addAll(read(process.getInputStream(), System.out));
read.add("err开始===================================");
read.addAll(read(process.getErrorStream(), System.err));
read.addAll(read(process.getErrorStream(), System.out));
}
/**