Ver código fonte

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

xuxueli 5 anos atrás
pai
commit
6f1621735f

+ 2 - 2
xxl-job-core/src/main/java/com/xxl/job/core/util/ScriptUtil.java Ver arquivo

52
      * @return
52
      * @return
53
      * @throws IOException
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
         FileOutputStream fileOutputStream = null;
57
         FileOutputStream fileOutputStream = null;
58
         Thread inputThread = null;
58
         Thread inputThread = null;
187
      * @return
187
      * @return
188
      * @throws IOException
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
         // 标准输出:print (null if watchdog timeout)
191
         // 标准输出:print (null if watchdog timeout)
192
         // 错误输出:logging + 异常 (still exists if watchdog timeout)
192
         // 错误输出:logging + 异常 (still exists if watchdog timeout)
193
         // 标准输入
193
         // 标准输入