mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
If build.path is specified, create it if needed
When no build.path preference is present, a temporary directory is automatically created (and deleted). When a build.path was specified, but the directory does not exist, the IDE would show an error and fail to build, which is unexpected and not so friendly. This commit makes sure that the build directory is automatically created.
This commit is contained in:
parent
c959388b37
commit
f47ec35ebe
@ -2089,6 +2089,8 @@ public class Base {
|
||||
String buildPath = Preferences.get("build.path");
|
||||
if (buildPath != null) {
|
||||
buildFolder = Base.absoluteFile(buildPath);
|
||||
if (!buildFolder.exists())
|
||||
buildFolder.mkdirs();
|
||||
} else {
|
||||
//File folder = new File(getTempFolder(), "build");
|
||||
//if (!folder.exists()) folder.mkdirs();
|
||||
|
Loading…
x
Reference in New Issue
Block a user