mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Moving sketch compilation during upload from applet/ sub-directory to a temporary folder.
This commit is contained in:
@ -1393,7 +1393,7 @@ public class Sketch {
|
|||||||
|
|
||||||
|
|
||||||
protected boolean exportApplet(boolean verbose) throws Exception {
|
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);
|
upload(appletFolder.getPath(), foundName, verbose);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void size(String buildPath, String suggestedClassName)
|
protected void size(String buildPath, String suggestedClassName)
|
||||||
@ -1455,12 +1455,12 @@ public class Sketch {
|
|||||||
maxsize + " byte maximum)");
|
maxsize + " byte maximum)");
|
||||||
} catch (RunnerException e) {
|
} catch (RunnerException e) {
|
||||||
System.err.println("Couldn't determine program size: " + e.getMessage());
|
System.err.println("Couldn't determine program size: " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size > maxsize)
|
if (size > maxsize)
|
||||||
throw new RunnerException(
|
throw new RunnerException(
|
||||||
"Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.");
|
"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)
|
protected String upload(String buildPath, String suggestedClassName, boolean verbose)
|
||||||
|
Reference in New Issue
Block a user