minor changes for windows haxm installation

revert-dabc3590
Nirothipan 8 years ago
parent 33dc732bd3
commit 732a255dd8

@ -741,12 +741,16 @@ public class TryIt {
ProcessBuilder processBuilder; ProcessBuilder processBuilder;
if (osSuffix.equals(Constants.MAC_OS)) { if (osSuffix.equals(Constants.MAC_OS)) {
haxmInstaller = haxmLocation + File.separator + "silent_install.sh"; haxmInstaller = haxmLocation + File.separator + "silent_install.sh";
setExecutePermission(haxmInstaller);
processBuilder = new ProcessBuilder("sudo", haxmInstaller, "-m", "2048", "-log",
androidSdkHome + File.separator + "haxmSilentRun.log");
} else { } else {
haxmInstaller = haxmLocation + File.separator + "silent_install.bat"; haxmInstaller = haxmLocation + File.separator + "silent_install.bat";
}
setExecutePermission(haxmInstaller); setExecutePermission(haxmInstaller);
processBuilder = new ProcessBuilder("sudo", haxmInstaller, "-m", "2048", "-log", processBuilder = new ProcessBuilder(haxmInstaller, "-m", "2048", "-log",
androidSdkHome + File.separator + "haxmSilentRun.log"); androidSdkHome + File.separator + "haxmSilentRun.log");
}
System.out.println("Installing intel HAXM, Please wait . . . "); System.out.println("Installing intel HAXM, Please wait . . . ");
processBuilder.directory(new File(haxmLocation)); processBuilder.directory(new File(haxmLocation));
processBuilder.redirectInput(ProcessBuilder.Redirect.INHERIT); processBuilder.redirectInput(ProcessBuilder.Redirect.INHERIT);

Loading…
Cancel
Save