[Title] fix problem of parsing vmName
authorSon Hyunjun <hj79.son@samsung.com>
Fri, 23 Mar 2012 05:03:04 +0000 (14:03 +0900)
committerSon Hyunjun <hj79.son@samsung.com>
Fri, 23 Mar 2012 05:03:04 +0000 (14:03 +0900)
[Type] Bugfix
[Module]
[Priority] Minor
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]

Change-Id: I32aff8054df9f17e290208cde5e3aacda56a6687

tizen/src/skin/client/src/org/tizen/emulator/skin/util/SkinUtil.java

index 1c68ba2..3381e59 100644 (file)
@@ -82,9 +82,16 @@ public class SkinUtil {
        public static String getVmName( EmulatorConfig config ) {
                
                String vmPath = config.getArg( ArgsConstants.VM_PATH );
-               String[] split = StringUtil.nvl( vmPath ).split( File.separator );
+
+               String regex = "";
+               if ( isWindowsPlatform() ) {
+                       regex = "\\" + File.separator;
+               } else {
+                       regex = File.separator;
+               }
+               String[] split = StringUtil.nvl( vmPath ).split( regex );
                String vmName = split[split.length - 1];
-               
+
                return vmName;
                
        }