no message

This commit is contained in:
2024-10-11 00:00:30 +03:00
parent a11b7711f7
commit f317ab1aa1
341 changed files with 1866 additions and 1688 deletions

View File

@@ -1,5 +1,5 @@
package Visual_DVM_2021.Passes.All;
import Common.Utils.CommonUtils;
import Common.Utils.Utils_;
import _VisualDVM.Current;
import _VisualDVM.Utils;
import _VisualDVM.GlobalData.User.User;
@@ -16,13 +16,13 @@ public class LocalInitaliseUser extends ProcessPass<User> {
}
@Override
protected void body() throws Exception {
File workspace = new File(CommonUtils.getHomeDirectory(), "User");
File workspace = new File(Utils_.getHomeDirectory(), "User");
target.workspace = workspace.getAbsolutePath();
Utils.CheckAndCleanDirectory(workspace);
FileUtils.forceMkdir(target.getLocalProjectsDir());
FileUtils.forceMkdir(target.getLocalModulesDir());
//-
if (!CommonUtils.isWindows()) {
if (!Utils_.isWindows()) {
File headerCode = target.getHeaderCodeFile();
//-
File starterCode = target.getStarterCodeFile();
@@ -35,18 +35,18 @@ public class LocalInitaliseUser extends ProcessPass<User> {
//-
PerformScript(
String.join("\n",
"cd " + CommonUtils.DQuotes(target.getLocalModulesDir()),
"cd " + Utils_.DQuotes(target.getLocalModulesDir()),
"g++ starter -o starter",
"chmod 0777 starter"
));
PerformScript(String.join("\n",
"cd " + CommonUtils.DQuotes(target.getLocalModulesDir()),
"cd " + Utils_.DQuotes(target.getLocalModulesDir()),
"g++ launcher.cpp -o launcher",
"chmod 0777 launcher"
));
}
//-
target.state = UserState.ready_to_work;
CommonUtils.db.Update(target);
Utils_.db.Update(target);
}
}