소스 검색

ShellExecutor 在目录中执行命令的方法更名为 execWithDir

reghao 2 달 전
부모
커밋
52c4e05b5e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/src/main/java/cn/reghao/bnt/web/devops/builder/tool/compiler/ShellCompiler.java

+ 1 - 1
web/src/main/java/cn/reghao/bnt/web/devops/builder/tool/compiler/ShellCompiler.java

@@ -23,7 +23,7 @@ public class ShellCompiler implements CodeCompiler {
     public void compile(String appId, String appCompileHome) throws Exception {
         ShellResult result;
         for (String compileScript : compileCmds) {
-            result = shell.exec(appCompileHome, compileScript.split("\\s+"));
+            result = shell.execWithDir(appCompileHome, compileScript.split("\\s+"));
             if (!result.isSuccess()) {
                 throw new Exception(result.getResult());
                 //throw new Exception(JsonConverter.objectToJson(result.getResult()));