Дополнение обновлений
This commit is contained in:
2025-03-13 14:36:02 +03:00
parent 1d97048de1
commit dc68667b20
8 changed files with 35 additions and 217 deletions

View File

@@ -1,5 +1,6 @@
package _VisualDVM.Passes.All;
import Common.CommonConstants;
import Common.Utils.Utils_;
import _VisualDVM.Constants;
import _VisualDVM.Global;
import _VisualDVM.Passes.ProcessPass;
@@ -23,11 +24,19 @@ public class DownloadSapforRepository extends ProcessPass {
private void synchronize(String src, File dst) throws Exception {
File loadedFile = Paths.get(dst.getAbsolutePath(), CommonConstants.LOADED).toFile();
if (loadedFile.exists()) {
PerformScript("cd " + dst.getAbsolutePath() +
"\ngit pull ");
PerformScript("cd " + dst.getAbsolutePath() + "\n" +
"git pull\n" +
"cd " + Utils_.DQuotes(sapforHome) + "\n" +
"GIT_SSL_NO_VERIFY=true git submodule update --init\n"
);
} else {
Utils.CleanDirectory(dst);
PerformScript("cd Repo\ngit clone " + src + "\n"); //export
PerformScript("cd Repo\n" +
"git clone " +
Utils_.DQuotes(src) + "\n" +
"cd " + Utils_.DQuotes(sapforHome) + "\n" +
"GIT_SSL_NO_VERIFY=true git submodule update --init\n"
); //export
FileUtils.write(loadedFile, "");
}
}