private static List<String> getCommand(VMProperty property)
throws VMLauncherException {
String binaryPath = FilePathResources.getEmulatorBinPath(property.getPropertyValue().version)
- + File.separator + getBinary(property.getArch().toString());
+ + File.separator + getBinary();
String configPath = LaunchConfig
.getLaunchConfigPath(property.getName());
if (!new File(configPath).exists()) {
}
}
- private static String getBinary(String arch) {
- String binary;
- if (arch.equals("x86")) {
- if (EmulatorManager.isWin()) {
- binary = "emulator-x86.exe";
- } else {
- binary = "emulator-x86";
- }
+ private static String getBinary() {
+ if (EmulatorManager.isWin()) {
+ return "emulator.cmd";
+
} else {
- if (EmulatorManager.isWin()) {
- binary = "emulator-arm.exe";
- } else {
- binary = "emulator-arm";
- }
+ return "emulator.sh";
}
- return binary;
}
public static Process launch(String vmName, String platformVersion,
// Make backup log.
// LogUtil.makeVMBackupLog(vmName);
- Map<String, String> env = pb.environment();
- if (EmulatorManager.isLinux()) {
- String value = env.get("LD_LIBRARY_PATH");
- env.put("LD_LIBRARY_PATH",
- ((value == null) ? "" : value + ":")
- + FilePathResources.getEmulatorBinPath(platformVersion) + ":"
- + FilePathResources.getRemotePath()
- + File.separator + "lib:");
- EMLogger.getLogger().log(Level.INFO,
- "LD_LIBRARY_PATH=" + env.get("LD_LIBRARY_PATH"));
-
- } else if (EmulatorManager.isWin()) {
- env.put("SDL_STDIO_REDIRECT","0");
- EMLogger.getLogger().log(Level.INFO,
- "ENV : SDL_STDIO_REDIRECT=" + env.get("SDL_STDIO_REDIRECT"));
- }
-
if (binPath == null || binPath.isEmpty()) {
pb.directory(new File(FilePathResources.getEmulatorBinPath(platformVersion)));
} else {