++
Дополнение обновлений
This commit is contained in:
@@ -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, "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user