|
|
@@ -25,6 +25,8 @@ import lombok.AllArgsConstructor;
|
|
|
import lombok.Data;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
+import java.io.File;
|
|
|
+
|
|
|
/**
|
|
|
* 应用构建部署,每个应用持有一个对象
|
|
|
*
|
|
|
@@ -105,7 +107,7 @@ public class AppBuilder {
|
|
|
codeCompiler = new ShellCompiler(compilerConfig);
|
|
|
break;
|
|
|
case maven:
|
|
|
- String appDirPath = app.getCodeDirname() + app.getAppDirPath();
|
|
|
+ String appDirPath = app.getProjDirname() + app.getAppRootPath();
|
|
|
codeCompiler = new MavenCompiler(compilerConfig.getHomePath(), app.getEnv(), appDirPath);
|
|
|
break;
|
|
|
case docker:
|
|
|
@@ -173,6 +175,8 @@ public class AppBuilder {
|
|
|
}
|
|
|
|
|
|
public String pack() throws Exception {
|
|
|
+ String appDirPath = compileDir() + File.separator + app.getAppRootPath();
|
|
|
+
|
|
|
return codePacker.pack(app.getAppId(), latestCommitInfo.getCommitId(), compileDir());
|
|
|
}
|
|
|
|
|
|
@@ -181,7 +185,7 @@ public class AppBuilder {
|
|
|
}
|
|
|
|
|
|
private String compileDir() {
|
|
|
- return appCompileDir + "/" + app.getCodeDirname();
|
|
|
+ return appCompileDir + "/" + app.getProjDirname();
|
|
|
}
|
|
|
|
|
|
@Data
|