удаление отладочной печати сравнения и не только
This commit is contained in:
@@ -63,11 +63,9 @@ public class Configuration extends riDBObject {
|
||||
Vector<Integer> from = RunConfiguration.getBounds(String.join(" ", min_border));
|
||||
Vector<Integer> to = RunConfiguration.getBounds(String.join(" ", max_border));
|
||||
if (from.size() != to.size()) {
|
||||
System.out.println("Верхняя и нижняя границы матриц конфигурации имеют разные размерности");
|
||||
return res;
|
||||
}
|
||||
if (from.size() != testDim) {
|
||||
System.out.println("Границы матриц не совпадают с размерностью конфигурации");
|
||||
return res;
|
||||
}
|
||||
//1 стадия. заполнение.
|
||||
|
||||
@@ -28,13 +28,11 @@ public class LocalDVMTestingPlanner extends DVMTestingPlanner {
|
||||
if (version.exists()) {
|
||||
try {
|
||||
current_version = Integer.parseInt(FileUtils.readFileToString(version));
|
||||
System.out.println("current version ="+current_version);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
else {
|
||||
System.out.println("version not exists");
|
||||
}
|
||||
if (current_version < actual_version) {
|
||||
Print("Закачка кода модулей...");
|
||||
|
||||
@@ -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