From 71836a0f8ece3b53923de4bd39366b2048f31934 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 16 Feb 2009 12:37:18 +0000 Subject: [PATCH] split command into arguments is unnecessary --- .../apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java index 6af5234e7..30c936fad 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMoteType.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: MspMoteType.java,v 1.20 2008/12/03 15:19:03 fros4943 Exp $ + * $Id: MspMoteType.java,v 1.21 2009/02/16 12:37:18 fros4943 Exp $ */ package se.sics.cooja.mspmote; @@ -500,9 +500,7 @@ public abstract class MspMoteType implements MoteType { try { logger.info("Compilation command: " + command); - String[] cmd = command.split(" "); - - compileProcess = Runtime.getRuntime().exec(cmd, null, + compileProcess = Runtime.getRuntime().exec(command, null, parentDirectory); final BufferedReader processNormal = new BufferedReader(