generated from root/miduo_server
jieling
parent
3a3aedf184
commit
e964b37af2
|
|
@ -353,9 +353,11 @@ public class AutoServerManager {
|
||||||
*/
|
*/
|
||||||
public static void readProcessOutput(final Process process) {
|
public static void readProcessOutput(final Process process) {
|
||||||
// 将进程的正常输出在 System.out 中打印,进程的错误输出在 System.err 中打印
|
// 将进程的正常输出在 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.add("err开始===================================");
|
||||||
read.addAll(read(process.getErrorStream(), System.err));
|
read.addAll(read(process.getErrorStream(), System.out));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue