| 536 | |
| 537 | |
| 538 | static public String findCollision(File folder) { |
| 539 | File[] jars = PApplet.listFiles(folder, "recursive", "extension=jar"); |
| 540 | if (jars != null) { |
| 541 | for (File file : jars) { |
| 542 | try { |
| 543 | ZipFile zf = new ZipFile(file); |
| 544 | if (zf.getEntry("processing/core/PApplet.class") != null) { |
| 545 | return "processing.core"; |
| 546 | } |
| 547 | if (zf.getEntry("processing/app/Base.class") != null) { |
| 548 | return "processing.app"; |
| 549 | } |
| 550 | } catch (IOException e) { |
| 551 | // ignored |
| 552 | } |
| 553 | } |
| 554 | } |
| 555 | return null; |
| 556 | } |
| 557 | |
| 558 | |
| 559 | static public List<File> discover(File folder) { |