ソースを参照

移除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
         // 标准输入