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

2.1.2
xuxueli 6 years ago
parent 82b4d735ca
commit 6f1621735f

@ -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 {
* @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
// 标准输入 // 标准输入

Loading…
Cancel
Save