no message

This commit is contained in:
2024-10-07 22:04:09 +03:00
parent 7fac84740d
commit 17c0bf7eb3
103 changed files with 560 additions and 491 deletions

View File

@@ -3,7 +3,6 @@ import Common.Utils.CommonUtils;
import Common_old.Current;
import _VisualDVM.Global;
import Common_old.UI.UI;
import Common_old.Utils.Utils;
import GlobalData.Account.AccountRole;
import Repository.Component.Component;
import Repository.Component.ComponentType;
@@ -32,7 +31,7 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
}
@Override
protected boolean canStart(Object... args) throws Exception {
if (!Global.isWindows) {
if (!CommonUtils.isWindows) {
Log.Writeln_("Публикация компонент разрешена только для Windows");
return false;
}
@@ -71,7 +70,7 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
protected void ServerAction() throws Exception {
String change_description = (f.Result == null) ? "не указаны" : f.Result;
String change_record_header = String.join(" ",
CommonUtils.Brackets(Utils.print_date(new Date())) + ":",
CommonUtils.Brackets(CommonUtils.print_date(new Date())) + ":",
Current.getAccount().name + CommonUtils.RBrackets(Current.getAccount().email),
"публикует версию", CommonUtils.DQuotes(target.version)
);
@@ -85,14 +84,14 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
target.getVersionText() + "\n" +
change_record;
Command(new ServerExchangeUnit_2021(ServerCode.PublishComponent,
packed, Utils.packFile(target.getFile())
packed, CommonUtils.fileToBytes(target.getFile())
));
if (target.needs_update_minimal_version) {
packed = target.getComponentType().toString() + "\n" +
target.getVersionText() + "\n";
//--
Command(new ServerExchangeUnit_2021(ServerCode.UpdateComponentMinimalVersion,
packed, Utils.packFile(target.getFile())
packed, CommonUtils.fileToBytes(target.getFile())
));
}
}