From 2a3a8b1c4f69ac1d3a8b93753f5e814c05aaa625 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Wed, 23 Dec 2009 00:00:57 +0000 Subject: [PATCH] Moving sketch compilation during upload from applet/ sub-directory to a temporary folder. --- app/src/processing/app/Sketch.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/processing/app/Sketch.java b/app/src/processing/app/Sketch.java index b70abc019..aac51d9a5 100644 --- a/app/src/processing/app/Sketch.java +++ b/app/src/processing/app/Sketch.java @@ -1393,7 +1393,7 @@ public class Sketch { protected boolean exportApplet(boolean verbose) throws Exception { - return exportApplet(new File(folder, "applet").getAbsolutePath(), verbose); + return exportApplet(tempBuildFolder.getAbsolutePath(), verbose); } @@ -1441,7 +1441,7 @@ public class Sketch { upload(appletFolder.getPath(), foundName, verbose); return true; - } + } protected void size(String buildPath, String suggestedClassName) @@ -1455,12 +1455,12 @@ public class Sketch { maxsize + " byte maximum)"); } catch (RunnerException e) { System.err.println("Couldn't determine program size: " + e.getMessage()); - } + } if (size > maxsize) throw new RunnerException( "Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it."); - } + } protected String upload(String buildPath, String suggestedClassName, boolean verbose)