|
|
|
@ -740,20 +740,14 @@ public class TryIt {
|
|
|
|
|
getTools(System.getProperty(Constants.HAXM_URL), folderName);
|
|
|
|
|
ProcessBuilder processBuilder;
|
|
|
|
|
if (osSuffix.equals(Constants.MAC_OS)) {
|
|
|
|
|
haxmInstaller = haxmLocation + File.separator + "HAXM installation";
|
|
|
|
|
setExecutePermission(haxmInstaller);
|
|
|
|
|
processBuilder = new ProcessBuilder("sudo", haxmInstaller, "-m", "2048", "-log",
|
|
|
|
|
androidSdkHome + File.separator + "haxmSilentRun.log");
|
|
|
|
|
haxmInstaller = haxmLocation + File.separator + "silent_install.sh";
|
|
|
|
|
} else {
|
|
|
|
|
haxmInstaller = haxmLocation + File.separator + "silent_install";
|
|
|
|
|
haxmInstaller += Constants.WINDOWS_EXTENSION_BAT;
|
|
|
|
|
haxmInstaller = haxmLocation + File.separator + "silent_install.bat";
|
|
|
|
|
}
|
|
|
|
|
setExecutePermission(haxmInstaller);
|
|
|
|
|
processBuilder = new ProcessBuilder(haxmInstaller, "-m", "2048", "-log",
|
|
|
|
|
processBuilder = new ProcessBuilder("sudo", haxmInstaller, "-m", "2048", "-log",
|
|
|
|
|
androidSdkHome + File.separator + "haxmSilentRun.log");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
System.out.println("Installing intel HAXM...");
|
|
|
|
|
|
|
|
|
|
System.out.println("Installing intel HAXM, Please wait . . . ");
|
|
|
|
|
processBuilder.directory(new File(haxmLocation));
|
|
|
|
|
processBuilder.redirectInput(ProcessBuilder.Redirect.INHERIT);
|
|
|
|
|
processBuilder.redirectOutput(ProcessBuilder.Redirect.INHERIT);
|
|
|
|
|