|
|
@@ -75,9 +75,9 @@ public class AppBuilder {
|
|
|
}
|
|
|
|
|
|
private void initLocalDir() {
|
|
|
- appLocalRepo = LocalBuildDir.localRepo + "/" + app.getAppId();
|
|
|
- appCompileDir = LocalBuildDir.compileDir + "/" + app.getAppId();
|
|
|
- appPackDir = LocalBuildDir.packDir + "/" + app.getAppId();
|
|
|
+ appLocalRepo = LocalBuildDir.localRepo + File.separator + app.getAppId();
|
|
|
+ appCompileDir = LocalBuildDir.compileDir + File.separator + app.getAppId();
|
|
|
+ appPackDir = LocalBuildDir.packDir + File.separator + app.getAppId();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -175,9 +175,9 @@ public class AppBuilder {
|
|
|
}
|
|
|
|
|
|
public String pack() throws Exception {
|
|
|
- String appDirPath = compileDir() + File.separator + app.getAppRootPath();
|
|
|
-
|
|
|
- return codePacker.pack(app.getAppId(), latestCommitInfo.getCommitId(), compileDir());
|
|
|
+ String appRootPath = compileDir() + File.separator + app.getAppRootPath();
|
|
|
+ return codePacker.pack(app.getAppId(), latestCommitInfo.getCommitId(), appRootPath);
|
|
|
+ //return codePacker.pack(app.getAppId(), latestCommitInfo.getCommitId(), compileDir());
|
|
|
}
|
|
|
|
|
|
public String push(String localPath) throws DockerException {
|
|
|
@@ -185,7 +185,7 @@ public class AppBuilder {
|
|
|
}
|
|
|
|
|
|
private String compileDir() {
|
|
|
- return appCompileDir + "/" + app.getProjDirname();
|
|
|
+ return appCompileDir + File.separator + app.getProjDirname();
|
|
|
}
|
|
|
|
|
|
@Data
|