From 3583dbdfca0082395058d191c31db40e565ec743 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 1 Jul 2016 16:08:23 +0200 Subject: [PATCH] Fixed bbg on return value. --- src/fr/devinsy/util/cmdexec/CmdExec.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fr/devinsy/util/cmdexec/CmdExec.java b/src/fr/devinsy/util/cmdexec/CmdExec.java index ecaa218..3987bcb 100644 --- a/src/fr/devinsy/util/cmdexec/CmdExec.java +++ b/src/fr/devinsy/util/cmdexec/CmdExec.java @@ -150,7 +150,7 @@ public class CmdExec { int result; - logger.info("CmdExec(commande) = [" + command + "]"); + logger.info("CmdExec(command) = [" + command + "]"); String[] commands = command.split("[ \t\n\r\f]"); @@ -188,8 +188,8 @@ public class CmdExec { int result; - logger.info("CmdExec(commande[]) = [" + StringListUtils.toStringSeparatedBy(command, " ") + "]"); - logger.info("CmdExec(commande[]) = [" + StringListUtils.toStringWithBrackets(command) + "]"); + logger.info("CmdExec(command[]) = [" + StringListUtils.toStringSeparatedBy(command, " ") + "]"); + logger.info("CmdExec(command[]) = [" + StringListUtils.toStringWithBrackets(command) + "]"); try { @@ -222,7 +222,6 @@ public class CmdExec this.out = outputGobbler.getStream(); this.err = errorGobbler.getStream(); - this.exitValue = 0; result = this.exitValue; } catch (Exception exception)