|
|
@@ -43,11 +43,11 @@ public class StaticPack implements CodePacker {
|
|
|
String dirname = String.format("%s_%s", appId, commitId);
|
|
|
String destDirPath = targetDirPath + File.separator + dirname;
|
|
|
File destDir = new File(destDirPath);
|
|
|
- if (!destDir.exists()) {
|
|
|
- FileUtils.copyDirectory(srcDir, destDir);
|
|
|
- } else {
|
|
|
- log.info("{} exist", destDirPath);
|
|
|
+ if (destDir.exists()) {
|
|
|
+ FileUtils.deleteDirectory(destDir);
|
|
|
+ log.info("delete exist dir {}", destDirPath);
|
|
|
}
|
|
|
+ FileUtils.copyDirectory(srcDir, destDir);
|
|
|
return "";
|
|
|
}
|
|
|
|