From da285c30c8cf3ef875e20cc45c79467fdad3f5c4 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Sat, 13 Jul 2013 00:04:15 -0400 Subject: [PATCH] deal with Contents/Java/Classes issue --- app/src/processing/mode/java/Compiler.java | 2 +- app/src/processing/mode/java/JavaBuild.java | 6 ++++++ build/build-7u40.xml | 4 ++++ todo.txt | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/src/processing/mode/java/Compiler.java b/app/src/processing/mode/java/Compiler.java index ba98e68fe..417e9f45f 100644 --- a/app/src/processing/mode/java/Compiler.java +++ b/app/src/processing/mode/java/Compiler.java @@ -100,7 +100,7 @@ public class Compiler { // System.arraycopy(sourceFiles, 0, command, baseCommand.length, sourceCount); String[] command = PApplet.concat(baseCommand, sourceFiles); - //PApplet.println(command); +// PApplet.println(command); try { // Load errors into a local StringBuffer diff --git a/app/src/processing/mode/java/JavaBuild.java b/app/src/processing/mode/java/JavaBuild.java index 61c1894c9..43112e227 100644 --- a/app/src/processing/mode/java/JavaBuild.java +++ b/app/src/processing/mode/java/JavaBuild.java @@ -454,6 +454,12 @@ public class JavaBuild { javaClassPath = javaClassPath.substring(1, javaClassPath.length() - 1); } classPath += File.pathSeparator + javaClassPath; + + // But make sure that there isn't anything in there that's missing, + // otherwise ECJ will complain and die. For instance, Java 1.7 (or maybe + // it's appbundler?) adds Java/Classes to the path, which kills us. + //String[] classPieces = PApplet.split(classPath, File.pathSeparator); + // Nah, nevermind... we'll just create the @!#$! folder until they fix it. // 3. then loop over the code[] and save each .java file diff --git a/build/build-7u40.xml b/build/build-7u40.xml index 58b5a7c0d..1c3c0e754 100755 --- a/build/build-7u40.xml +++ b/build/build-7u40.xml @@ -488,6 +488,10 @@