mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix bug
This commit is contained in:
parent
63189ae6fb
commit
0aaf50a27f
@ -2,7 +2,7 @@
|
|||||||
# 🚀Changelog
|
# 🚀Changelog
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.7.22 (2022-02-25)
|
# 5.7.22 (2022-02-26)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【poi 】 ExcelUtil.readBySax增加对POI-5.2.0的兼容性(issue#I4TJF4@gitee)
|
* 【poi 】 ExcelUtil.readBySax增加对POI-5.2.0的兼容性(issue#I4TJF4@gitee)
|
||||||
|
@ -79,7 +79,7 @@ public class GanymedUtil {
|
|||||||
result = IoUtil.read(new StreamGobbler(session.getStdout()), charset);
|
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) {
|
} catch (IOException e) {
|
||||||
throw new IORuntimeException(e);
|
throw new IORuntimeException(e);
|
||||||
} finally {
|
} finally {
|
||||||
@ -91,7 +91,7 @@ public class GanymedUtil {
|
|||||||
/**
|
/**
|
||||||
* 执行Shell命令
|
* 执行Shell命令
|
||||||
* <p>
|
* <p>
|
||||||
* 此方法单次发送一个命令到服务端,自动读取环境变量,执行结束后自动关闭Session,不会产生阻塞。
|
* 此方法单次发送一个命令到服务端,自动读取环境变量,执行结束后自动关闭Session,可能产生阻塞。
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param session Session会话
|
* @param session Session会话
|
||||||
@ -109,7 +109,7 @@ public class GanymedUtil {
|
|||||||
result = IoUtil.read(new StreamGobbler(session.getStdout()), charset);
|
result = IoUtil.read(new StreamGobbler(session.getStdout()), charset);
|
||||||
if(null != errStream){
|
if(null != errStream){
|
||||||
// 错误输出
|
// 错误输出
|
||||||
IoUtil.copy(new StreamGobbler(session.getStdout()), errStream);
|
IoUtil.copy(new StreamGobbler(session.getStderr()), errStream);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new IORuntimeException(e);
|
throw new IORuntimeException(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user