Archived
0

Zond: несколько фиксов

This commit is contained in:
2017-06-14 17:43:00 +03:00
parent 349deaa837
commit 915e612862
2 changed files with 6 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
group = 'asys'
version = '0.6.11-SNAPSHOT'
version = '0.6.12-SNAPSHOT'
apply plugin: 'application'

View File

@@ -57,7 +57,7 @@ public class Main {
Shell.getInstance().start(System.in, commandLine -> {
if (commandLine.equalsIgnoreCase(":exit")) {
Shell.getInstance().getOutput().println("force exit");
// watchdog.destroyProcess();
watchdog.destroyProcess();
Shell.getInstance().shutdown();
Main.shutdown();
return;
@@ -65,18 +65,13 @@ public class Main {
pipeInputStream.write(commandLine+"\r\n");
});
Connector.getInstance().startReconnect();
// int resultCode = executeProcess(args, Shell.getInstance().getOutput(), pipeInputStream);
int resultCode = executeProcess(args, Shell.getInstance().getOutput(), pipeInputStream);
// Shell.getInstance().shutdown();
//
//
// int resultCode = -2;
// System.out.println(Ansi.ansi().reset().newline()
// .fg(Color.GREEN).a("Process Finished. Code: ")
// .bold().fg(Color.WHITE).a(resultCode).reset());
System.out.println(Ansi.ansi().reset().newline()
.fg(Color.GREEN).a("Process Finished. Code: ")
.bold().fg(Color.WHITE).a(resultCode).reset());
}
private static int executeProcess(String[] args, PrintStream printStream, InputStream stdin) throws IOException {