menu: using ansicon when sdb is launched
authorgiwoong.kim <giwoong.kim@samsung.com>
Tue, 25 Sep 2012 09:52:14 +0000 (18:52 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Tue, 25 Sep 2012 10:00:37 +0000 (19:00 +0900)
Execute a ansicon.exe intead of run-sdb.bat on windows
for console window is closed when exit the emulator

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java
tizen/src/skin/client/src/org/tizen/emulator/skin/util/SkinUtil.java

index c739c5c92057318874c501abcd25d908d626a8af..f93b929edd912ca966e5a05acccc37470834efb0 100644 (file)
@@ -1797,12 +1797,13 @@ public class EmulatorSkin {
 
                                ProcessBuilder procSdb = new ProcessBuilder();
 
-                               if ( SwtUtil.isLinuxPlatform() ) {
-                                       procSdb.command( "/usr/bin/gnome-terminal", "--disable-factory",
-                                                       "--title=" + SkinUtil.makeEmulatorName( config ), "-x", sdbPath, "-s", "emulator-"
-                                                                       + portSdb, "shell" );
-                               } else if ( SwtUtil.isWindowsPlatform() ) {
-                                       procSdb.command( "cmd.exe", "/c", "start", sdbPath, "-s", "emulator-" + portSdb, "shell" );
+                               if (SwtUtil.isLinuxPlatform()) {
+                                       procSdb.command("/usr/bin/gnome-terminal", "--disable-factory",
+                                                       "--title=" + SkinUtil.makeEmulatorName( config ), "-x", sdbPath,
+                                                       "-s", "emulator-"       + portSdb, "shell");
+                               } else if (SwtUtil.isWindowsPlatform()) {
+                                       procSdb.command("cmd.exe", "/c", "start", sdbPath, "sdb",
+                                                       "-s", "emulator-" + portSdb, "shell");
                                }
                                logger.log( Level.INFO, procSdb.command().toString() );
 
index e38812aa38739a8e1009af59e5ffc74d5c2fb2e6..859b0b12663364bcab77485bcaaa9294bc5064be 100644 (file)
@@ -101,7 +101,7 @@ public class SkinUtil {
                String sdbPath = null;
 
                if (SwtUtil.isWindowsPlatform()) {
-                       sdbPath = ".\\..\\..\\sdb-run.bat";
+                       sdbPath = ".\\..\\..\\ansicon.exe";
                } else {
                        sdbPath = "./../../sdb";
                }