This commit is contained in:
Looly 2022-02-26 23:08:16 +08:00
parent 63189ae6fb
commit 0aaf50a27f
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.7.22 (2022-02-25)
# 5.7.22 (2022-02-26)
### 🐣新特性
* 【poi 】 ExcelUtil.readBySax增加对POI-5.2.0的兼容性issue#I4TJF4@gitee

View File

@ -79,7 +79,7 @@ public class GanymedUtil {
result = IoUtil.read(new StreamGobbler(session.getStdout()), charset);
// 错误输出
IoUtil.copy(new StreamGobbler(session.getStdout()), errStream);
IoUtil.copy(new StreamGobbler(session.getStderr()), errStream);
} catch (IOException e) {
throw new IORuntimeException(e);
} finally {
@ -91,7 +91,7 @@ public class GanymedUtil {
/**
* 执行Shell命令
* <p>
* 此方法单次发送一个命令到服务端自动读取环境变量执行结束后自动关闭Session不会产生阻塞
* 此方法单次发送一个命令到服务端自动读取环境变量执行结束后自动关闭Session可能产生阻塞
* </p>
*
* @param session Session会话
@ -109,7 +109,7 @@ public class GanymedUtil {
result = IoUtil.read(new StreamGobbler(session.getStdout()), charset);
if(null != errStream){
// 错误输出
IoUtil.copy(new StreamGobbler(session.getStdout()), errStream);
IoUtil.copy(new StreamGobbler(session.getStderr()), errStream);
}
} catch (IOException e) {
throw new IORuntimeException(e);