From 732a255dd8a820caa131785053441b1dd6825603 Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Tue, 1 Aug 2017 10:31:36 +0530 Subject: [PATCH] minor changes for windows haxm installation --- .../main/java/org.carbon.android.emulator/TryIt.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java index 81dbf4c21..d17a5677d 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java @@ -741,12 +741,16 @@ public class TryIt { ProcessBuilder processBuilder; if (osSuffix.equals(Constants.MAC_OS)) { haxmInstaller = haxmLocation + File.separator + "silent_install.sh"; + setExecutePermission(haxmInstaller); + processBuilder = new ProcessBuilder("sudo", haxmInstaller, "-m", "2048", "-log", + androidSdkHome + File.separator + "haxmSilentRun.log"); } else { haxmInstaller = haxmLocation + File.separator + "silent_install.bat"; + setExecutePermission(haxmInstaller); + processBuilder = new ProcessBuilder(haxmInstaller, "-m", "2048", "-log", + androidSdkHome + File.separator + "haxmSilentRun.log"); } - setExecutePermission(haxmInstaller); - processBuilder = new ProcessBuilder("sudo", haxmInstaller, "-m", "2048", "-log", - androidSdkHome + File.separator + "haxmSilentRun.log"); + System.out.println("Installing intel HAXM, Please wait . . . "); processBuilder.directory(new File(haxmLocation)); processBuilder.redirectInput(ProcessBuilder.Redirect.INHERIT);