no message
This commit is contained in:
@@ -373,12 +373,12 @@ public class db_project_info extends DBObject {
|
||||
return res;
|
||||
}
|
||||
public void CreateParserOptionsDirs() throws Exception {
|
||||
Utils.forceDeleteWithCheck(getOptionsDirectory());
|
||||
Utils_.forceDeleteWithCheck(getOptionsDirectory());
|
||||
FileUtils.forceMkdir(getOptionsDirectory());
|
||||
CopySubdirectories(getOptionsDirectory());
|
||||
}
|
||||
public void CreateGCOVDirs() throws Exception {
|
||||
Utils.forceDeleteWithCheck(getGCOVDirectory());
|
||||
Utils_.forceDeleteWithCheck(getGCOVDirectory());
|
||||
FileUtils.forceMkdir(getGCOVDirectory());
|
||||
CopySubdirectories(getGCOVDirectory());
|
||||
}
|
||||
@@ -439,7 +439,7 @@ public class db_project_info extends DBObject {
|
||||
public void CleanVersions() throws Exception {
|
||||
node.removeAllChildren();
|
||||
for (db_project_info v : versions.values())
|
||||
Utils.forceDeleteWithCheck(v.Home);
|
||||
Utils_.forceDeleteWithCheck(v.Home);
|
||||
versions.clear();
|
||||
dropLastModification();
|
||||
}
|
||||
@@ -688,7 +688,7 @@ public class db_project_info extends DBObject {
|
||||
}
|
||||
public void CleanInterruptFile() throws Exception {
|
||||
File file = getInterruptFile();
|
||||
Utils.forceDeleteWithCheck(file);
|
||||
Utils_.forceDeleteWithCheck(file);
|
||||
}
|
||||
public void CreateInterruptFile() throws Exception {
|
||||
FileUtils.write(getInterruptFile(), Global.mode.toString());
|
||||
@@ -799,12 +799,12 @@ public class db_project_info extends DBObject {
|
||||
}
|
||||
//----------------------------------------------------
|
||||
private void CheckVisualiserDirectories() {
|
||||
Utils.CheckDirectory(getDataDirectory());
|
||||
Utils.CheckDirectory(getOptionsDirectory());
|
||||
Utils.CheckDirectory(getStatisticDirectory());
|
||||
Utils.CheckDirectory(getAttachmentsDirectory());
|
||||
Utils.CheckDirectory(getGCOVDirectory());
|
||||
Utils.CheckDirectory(getAnalyzerDirectory());
|
||||
Utils_.CheckDirectory(getDataDirectory());
|
||||
Utils_.CheckDirectory(getOptionsDirectory());
|
||||
Utils_.CheckDirectory(getStatisticDirectory());
|
||||
Utils_.CheckDirectory(getAttachmentsDirectory());
|
||||
Utils_.CheckDirectory(getGCOVDirectory());
|
||||
Utils_.CheckDirectory(getAnalyzerDirectory());
|
||||
}
|
||||
//загрузка инфы из бд проекта.
|
||||
private void ExtractStoredInfo(db_project_info to_restore) {
|
||||
@@ -890,7 +890,7 @@ public class db_project_info extends DBObject {
|
||||
}
|
||||
public void DeleteCrushedVersionIfNeed() throws Exception {
|
||||
if (!VersionBuilding.equals("")) {
|
||||
Utils.forceDeleteWithCheck(Paths.get(Home.getAbsolutePath(), VersionBuilding).toFile());
|
||||
Utils_.forceDeleteWithCheck(Paths.get(Home.getAbsolutePath(), VersionBuilding).toFile());
|
||||
SaveVersionToBuild("");
|
||||
}
|
||||
}
|
||||
@@ -989,9 +989,9 @@ public class db_project_info extends DBObject {
|
||||
return res;
|
||||
}
|
||||
public void cleanDepAndGCOVR() throws Exception {
|
||||
Utils.forceDeleteWithCheck(getOptionsDirectory());
|
||||
Utils.forceDeleteWithCheck(getGCOVDirectory());
|
||||
Utils.forceDeleteWithCheck(getStatisticDirectory());
|
||||
Utils_.forceDeleteWithCheck(getOptionsDirectory());
|
||||
Utils_.forceDeleteWithCheck(getGCOVDirectory());
|
||||
Utils_.forceDeleteWithCheck(getStatisticDirectory());
|
||||
for (db_project_info version : versions.values())
|
||||
version.cleanDepAndGCOVR();
|
||||
}
|
||||
@@ -1070,12 +1070,12 @@ public class db_project_info extends DBObject {
|
||||
Global.mainModule.set(Current.Version, null);
|
||||
//---
|
||||
UI.getVersionsWindow().getVersionsForm().getTree().RemoveNode(last_version.node);
|
||||
Utils.forceDeleteWithCheck(last_version.Home);
|
||||
Utils_.forceDeleteWithCheck(last_version.Home);
|
||||
versions.remove(last_version.name);
|
||||
last_version = null;
|
||||
//---
|
||||
if (last_modification != null) {
|
||||
Utils.forceDeleteWithCheck(last_modification.Home);
|
||||
Utils_.forceDeleteWithCheck(last_modification.Home);
|
||||
UI.getVersionsWindow().getVersionsForm().getTree().RemoveNode(last_modification.node);
|
||||
versions.remove(last_modification.name);
|
||||
last_modification = null;
|
||||
|
||||
Reference in New Issue
Block a user