mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
notes and xcode check work
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user