notes and xcode check work

This commit is contained in:
Ben Fry
2015-08-19 16:59:21 -04:00
parent 77917933c4
commit 1c18cf0079
4 changed files with 49 additions and 38 deletions

View File

@@ -1338,11 +1338,13 @@ public class JavaBuild {
static protected boolean isXcodeInstalled() {
if (xcodeInstalled == null) {
// http://stackoverflow.com/questions/15371925
Process p = PApplet.launch("xcode-select", "-p");
int result = -1;
try {
result = p.waitFor();
} catch (InterruptedException e) { }
// returns 0 if installed, 2 if not (-1 if exception)
xcodeInstalled = (result == 0);
}
return xcodeInstalled;