no message
This commit is contained in:
@@ -479,7 +479,7 @@ public abstract class Sapfor extends OSDComponent {
|
||||
flag = true;
|
||||
} catch (Exception ex) {
|
||||
CommonUtils.MainLog.PrintException(ex);
|
||||
Utils.sleep(1000);
|
||||
CommonUtils.sleep(1000);
|
||||
}
|
||||
}
|
||||
while (!flag);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package Repository;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Utils.Utils;
|
||||
import Repository.Server.ServerCode;
|
||||
import Repository.Server.ServerExchangeUnit_2021;
|
||||
import Visual_DVM_2021.Passes.PassException;
|
||||
@@ -69,7 +68,7 @@ public abstract class RepositoryClient {
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
} finally {
|
||||
Utils.sleep(getSleepMillis());
|
||||
CommonUtils.sleep(getSleepMillis());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ public abstract class RepositoryServer<D extends Database> {
|
||||
} catch (Exception ex) {
|
||||
System.out.println("Исключение во время отправки сообщения абоненту " + CommonUtils.Brackets(target));
|
||||
ex.printStackTrace();
|
||||
Utils.sleep(1000);
|
||||
CommonUtils.sleep(1000);
|
||||
} finally {
|
||||
attempts--;
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
||||
Print("Отправить клиенту архив всех архивов баг репортов");
|
||||
response = new ServerExchangeUnit_2021(ServerCode.OK);
|
||||
ZipFolderPass zip = new ZipFolderPass();
|
||||
File archives = new File(Utils.getDateName("Bugs"));
|
||||
File archives = new File(CommonUtils.getDateName("Bugs"));
|
||||
if (zip.Do("Bugs", archives.getAbsolutePath())) {
|
||||
response.object = CommonUtils.fileToBytes(archives);
|
||||
Print("Архив успешно запакован");
|
||||
@@ -318,7 +318,7 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
||||
+ CommonUtils.DQuotes(program.getName());
|
||||
//--
|
||||
File fileWorkspace = program.getParentFile();
|
||||
Process process = Utils.startScript(workspace, fileWorkspace, Utils.getDateName("convert_script"), command);
|
||||
Process process = Utils.startScript(workspace, fileWorkspace, CommonUtils.getDateName("convert_script"), command);
|
||||
process.waitFor();
|
||||
String convertationOut = Utils.readAllOutput(process);
|
||||
convertationOut = convertationOut.replace(program.getName(), fileName); //для учета пути.
|
||||
|
||||
Reference in New Issue
Block a user