no message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -32,7 +32,7 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (!CommonUtils.isWindows()) {
|
||||
if (!Utils_.isWindows()) {
|
||||
Log.Writeln_("Публикация компонент разрешена только для Windows");
|
||||
return false;
|
||||
}
|
||||
@@ -71,9 +71,9 @@ 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(CommonUtils.print_date(new Date())) + ":",
|
||||
Current.getAccount().name + CommonUtils.RBrackets(Current.getAccount().email),
|
||||
"публикует версию", CommonUtils.DQuotes(target.version)
|
||||
Utils_.Brackets(Utils_.print_date(new Date())) + ":",
|
||||
Current.getAccount().name + Utils_.RBrackets(Current.getAccount().email),
|
||||
"публикует версию", Utils_.DQuotes(target.version)
|
||||
);
|
||||
String change_record = String.join("\n", change_record_header, "Изменения:",
|
||||
change_description,
|
||||
@@ -85,14 +85,14 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
target.getVersionText() + "\n" +
|
||||
change_record;
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.PublishComponent,
|
||||
packed, CommonUtils.fileToBytes(target.getFile())
|
||||
packed, Utils_.fileToBytes(target.getFile())
|
||||
));
|
||||
if (target.needs_update_minimal_version) {
|
||||
packed = target.getComponentType().toString() + "\n" +
|
||||
target.getVersionText() + "\n";
|
||||
//--
|
||||
Command(new ServerExchangeUnit_2021(ServerCode.UpdateComponentMinimalVersion,
|
||||
packed, CommonUtils.fileToBytes(target.getFile())
|
||||
packed, Utils_.fileToBytes(target.getFile())
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -103,9 +103,9 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
||||
if ((f.Result != null)) {
|
||||
version_mail_header = String.join(" ",
|
||||
"Опубликована версия",
|
||||
CommonUtils.DQuotes(target.version),
|
||||
Utils_.DQuotes(target.version),
|
||||
"компонента",
|
||||
CommonUtils.DQuotes(target.getComponentType().getDescription()));
|
||||
Utils_.DQuotes(target.getComponentType().getDescription()));
|
||||
EmailMessage message =
|
||||
new EmailMessage(version_mail_header,
|
||||
f.Result,
|
||||
|
||||
Reference in New Issue
Block a user