[Type] Bugfix
[Module]
[Priority] Minor
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
Change-Id: I32aff8054df9f17e290208cde5e3aacda56a6687
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;
}