удаление отладочной печати сравнения и не только
This commit is contained in:
@@ -249,7 +249,6 @@ public class UserConnection {
|
||||
String getAvailibleCPPStandard(RemoteFile scriptDirectory) throws Exception {
|
||||
String res = "";
|
||||
String command = "g++ -v --help 2> /dev/null | sed -n '/^ *-std=\\([^<][^ ]\\+\\).*/ {s//\\1/p}' | grep c++";
|
||||
System.out.println(command);
|
||||
Pair<RemoteFile, RemoteFile> oe = performScript(scriptDirectory, command);
|
||||
RemoteFile outFile = oe.getKey();
|
||||
String out = readFromFile(outFile);
|
||||
@@ -494,7 +493,6 @@ public class UserConnection {
|
||||
public void CheckUserInitialization(String email) throws Exception {
|
||||
RemoteFile userWorkspace = new RemoteFile(user.workspace, true);
|
||||
if (!Exists(userWorkspace)) {
|
||||
System.out.println("создание папки пользователя");
|
||||
sftpChannel.mkdir(userWorkspace.full_name);
|
||||
//--
|
||||
RemoteFile modulesDirectory = new RemoteFile(userWorkspace, "modules");
|
||||
@@ -505,17 +503,13 @@ public class UserConnection {
|
||||
subdirectories.add(modulesDirectory);
|
||||
subdirectories.add(projectsDirectory);
|
||||
subdirectories.add(testsDirectory);
|
||||
System.out.println("создание рабочих подпапок");
|
||||
for (RemoteFile remoteFile : subdirectories)
|
||||
sftpChannel.mkdir(remoteFile.full_name);
|
||||
//--
|
||||
System.out.println("закачка кода модулей");
|
||||
for (String resource_name : Constants.resourses_names) {
|
||||
System.out.println(resource_name);
|
||||
putResource(modulesDirectory, resource_name);
|
||||
}
|
||||
//-
|
||||
System.out.println("Сборка модулей...");
|
||||
String modules_log = compileModules(modulesDirectory);
|
||||
if (!modules_log.isEmpty())
|
||||
throw new PassException(modules_log);
|
||||
@@ -538,13 +532,10 @@ public class UserConnection {
|
||||
}
|
||||
}
|
||||
if (current_version < actual_version) {
|
||||
System.out.println("Закачка кода модулей...");
|
||||
for (String resource_name : Constants.resourses_names) {
|
||||
System.out.println(resource_name);
|
||||
putResource(modulesDirectory, resource_name);
|
||||
}
|
||||
//--
|
||||
System.out.println("Сборка модулей...");
|
||||
return compileModules(modulesDirectory);
|
||||
}
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user