From 1eac6fd44da0b93271f121a0a2bcdd1aac3b21fe Mon Sep 17 00:00:00 2001 From: benfry Date: Thu, 27 Jan 2011 00:52:50 +0000 Subject: [PATCH] minor cleanups --- app/src/processing/mode/java/JavaBuild.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/processing/mode/java/JavaBuild.java b/app/src/processing/mode/java/JavaBuild.java index 80ed59458..7c8da6d60 100644 --- a/app/src/processing/mode/java/JavaBuild.java +++ b/app/src/processing/mode/java/JavaBuild.java @@ -380,12 +380,15 @@ public class JavaBuild { // grab the imports from the code just preproc'd importedLibraries = new ArrayList(); + System.out.println("extra imports: " + result.extraImports); for (String item : result.extraImports) { // remove things up to the last dot int dot = item.lastIndexOf('.'); // http://dev.processing.org/bugs/show_bug.cgi?id=1145 String entry = (dot == -1) ? item : item.substring(0, dot); + System.out.println("library searching for " + entry); Library library = mode.getLibrary(entry); + System.out.println(" found " + library); if (library != null) { if (!importedLibraries.contains(library)) { @@ -1078,9 +1081,10 @@ public class JavaBuild { mode.prepareExportFolder(destFolder); // build the sketch - File srcFolder = sketch.makeTempFolder(); - File binFolder = sketch.makeTempFolder(); - String foundName = build(srcFolder, binFolder); +// File srcFolder = sketch.makeTempFolder(); +// File binFolder = sketch.makeTempFolder(); +// String foundName = build(srcFolder, binFolder); + String foundName = build(); // (already reported) error during export, exit this function if (foundName == null) return false;