소스 검색

移除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 {
      * @return
      * @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;
         Thread inputThread = null;
@@ -187,7 +187,7 @@ public class ScriptUtil {
      * @return
      * @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)
         // 错误输出:logging + 异常 (still exists if watchdog timeout)
         // 标准输入