no message
This commit is contained in:
@@ -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())
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user