提交 6f162173 编写于 作者: 许雪里's avatar 许雪里

移除commons-exec,采用原生方式实现;

上级 82b4d735
...@@ -52,7 +52,7 @@ public class ScriptUtil { ...@@ -52,7 +52,7 @@ public class ScriptUtil {
* @return * @return
* @throws IOException * @throws IOException
*/ */
public static int execToFileB(String command, String scriptFile, String logFile, String... params) throws IOException { public static int execToFile(String command, String scriptFile, String logFile, String... params) throws IOException {
FileOutputStream fileOutputStream = null; FileOutputStream fileOutputStream = null;
Thread inputThread = null; Thread inputThread = null;
...@@ -187,7 +187,7 @@ public class ScriptUtil { ...@@ -187,7 +187,7 @@ public class ScriptUtil {
* @return * @return
* @throws IOException * @throws IOException
*/ */
/*public static int execToFile(String command, String scriptFile, String logFile, String... params) throws IOException { /*public static int execToFileB(String command, String scriptFile, String logFile, String... params) throws IOException {
// 标准输出:print (null if watchdog timeout) // 标准输出:print (null if watchdog timeout)
// 错误输出:logging + 异常 (still exists if watchdog timeout) // 错误输出:logging + 异常 (still exists if watchdog timeout)
// 标准输入 // 标准输入
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册