Procházet zdrojové kódy

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

xuxueli před 5 roky
rodič
revize
6f1621735f

+ 2 - 2
xxl-job-core/src/main/java/com/xxl/job/core/util/ScriptUtil.java Zobrazit soubor

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