Skip to content

Commit f47ec35

Browse files
matthijskooijmancmaglie
authored andcommitted
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.
1 parent c959388 commit f47ec35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/processing/app/Base.java

+2
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,8 @@ static public File getBuildFolder() {
20892089
String buildPath = Preferences.get("build.path");
20902090
if (buildPath != null) {
20912091
buildFolder = Base.absoluteFile(buildPath);
2092+
if (!buildFolder.exists())
2093+
buildFolder.mkdirs();
20922094
} else {
20932095
//File folder = new File(getTempFolder(), "build");
20942096
//if (!folder.exists()) folder.mkdirs();

0 commit comments

Comments
 (0)