CLI: Change to write progress log at every time. 93/14193/2
authorhyunsik.noh <hyunsik.noh@samsung.com>
Fri, 27 Dec 2013 08:28:16 +0000 (17:28 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Mon, 30 Dec 2013 03:41:33 +0000 (12:41 +0900)
Change-Id: I56704ca9bdbf98699ea8fd8fb977dc4804f59fea
Signed-off-by: hyunsik.noh <hyunsik.noh@samsung.com>
org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/BuildNativeCLICommand.java

index 29b81d1..20d94ae 100644 (file)
  */
 package org.tizen.ncli.ide.subcommands;
 
+import java.io.BufferedReader;
 import java.io.File;
 import java.io.IOException;
+import java.io.InputStreamReader;
 import java.util.List;
 
 import javax.xml.parsers.DocumentBuilderFactory;
@@ -42,6 +44,7 @@ import org.eclipse.osgi.util.NLS;
 import org.tizen.common.core.application.InstallPathConfig;
 import org.tizen.common.util.FileUtil;
 import org.tizen.common.util.HostUtil;
+import org.tizen.common.util.IOUtil;
 import org.tizen.common.util.StringUtil;
 import org.tizen.nativecommon.build.CommonConfigurationManager;
 import org.tizen.nativecommon.build.SmartBuildInterface;
@@ -266,7 +269,7 @@ public class BuildNativeCLICommand extends AbstractSubCommand<BuildNative> {
                 if(makeCommand()) {
                     String command = String.format(HEADLESS_CMD, idePath, importPath, buildPath, dataPath, targetId);
                     log.debug(command);
-                    progressLog.info(HostUtil.returnExecute(command));
+                    HostUtil.executeWithLog(command, progressLog);
                     removeDataDir();
                     if(isSuccessful()) {
                         setBuildTargetInfo();