CLI: Fix TargetUtil to execute command for windows. 47/15847/1
authorhyunsik.noh <hyunsik.noh@samsung.com>
Wed, 29 Jan 2014 06:00:53 +0000 (15:00 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Wed, 29 Jan 2014 06:00:53 +0000 (15:00 +0900)
Change-Id: Ie759b1e8c56c96b644f754438392b694691da71a
Signed-off-by: hyunsik.noh <hyunsik.noh@samsung.com>
org.tizen.ncli.ide/src/org/tizen/ncli/ide/util/TargetUtil.java

index 1ef7873..8636b7f 100644 (file)
@@ -140,6 +140,7 @@ public class TargetUtil {
         int timeout = (defaultTimeout == null ? 60000 : Integer.parseInt(defaultTimeout));
         SdbCommand sdbCommand = new SdbCommand(target, null, null, timeout);
         log.info("Execute " + command + " via Sdb");
-        return sdbCommand.returnExecuteCommand(command);
+        // "grep" is a problem in Windows. 
+        return sdbCommand.returnExecuteCommand("\"" + command + "\"");
     }
 }