瀏覽代碼

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

xuxueli 5 年之前
父節點
當前提交
6f1621735f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      xxl-job-core/src/main/java/com/xxl/job/core/util/ScriptUtil.java

+ 2 - 2
xxl-job-core/src/main/java/com/xxl/job/core/util/ScriptUtil.java 查看文件

@@ -52,7 +52,7 @@ public class ScriptUtil {
52 52
      * @return
53 53
      * @throws IOException
54 54
      */
55
-    public static int execToFileB(String command, String scriptFile, String logFile, String... params) throws IOException {
55
+    public static int execToFile(String command, String scriptFile, String logFile, String... params) throws IOException {
56 56
 
57 57
         FileOutputStream fileOutputStream = null;
58 58
         Thread inputThread = null;
@@ -187,7 +187,7 @@ public class ScriptUtil {
187 187
      * @return
188 188
      * @throws IOException
189 189
      */
190
-    /*public static int execToFile(String command, String scriptFile, String logFile, String... params) throws IOException {
190
+    /*public static int execToFileB(String command, String scriptFile, String logFile, String... params) throws IOException {
191 191
         // 标准输出:print (null if watchdog timeout)
192 192
         // 错误输出:logging + 异常 (still exists if watchdog timeout)
193 193
         // 标准输入