no message
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.Passes.PassException;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import Common.Passes.PassException;
|
||||
import _VisualDVM.Passes.SSH.RepositoryServerSSHPass;
|
||||
|
||||
import java.io.File;
|
||||
@@ -24,9 +24,9 @@ public class PublishTestingServer extends RepositoryServerSSHPass {
|
||||
//3. запустить сервер.
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
if ( Global.mainModule.getPass(PassCode.PingTestingServer).Do(true))
|
||||
if (Global.mainModule.getPass(PassCode.PingTestingServer).Do(true))
|
||||
ShutdownServer();
|
||||
if ( Global.mainModule.getPass(PassCode.PingTestingServer).Do(true)) {
|
||||
if (Global.mainModule.getPass(PassCode.PingTestingServer).Do(true)) {
|
||||
throw new PassException("Не удалось остановить сервер.");
|
||||
}
|
||||
File src = Global.visualiser.getFile();
|
||||
@@ -35,13 +35,11 @@ public class PublishTestingServer extends RepositoryServerSSHPass {
|
||||
user.connection.tryRM(dst);
|
||||
user.connection.putSingleFile(src, dst);
|
||||
//-
|
||||
|
||||
StartServer();
|
||||
}
|
||||
@Override
|
||||
protected boolean validate() {
|
||||
|
||||
if (! Global.mainModule.getPass(PassCode.PingTestingServer).Do(true)) {
|
||||
if (!Global.mainModule.getPass(PassCode.PingTestingServer).Do(true)) {
|
||||
Log.Writeln_("Не удалось запустить сервер.");
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user