env.put("ANDROID_SDK_HOME", sdk.getSdkHome());
procStarter = procStarter.envs(env);
}
// Run the command and accept any licence requests during installation
Proc proc = procStarter.start();
BufferedReader r = new BufferedReader(new InputStreamReader(proc.getStdout()));
String line;
while (proc.isAlive() && (line = r.readLine()) != null) {
logger.println(line);
if (line.toLowerCase(Locale.ENGLISH).startsWith("license id: ")) {