Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee6d70d

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
export sketch data folder to the build config
1 parent 716eafe commit ee6d70d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arduino-core/src/processing/app/debug/Compiler.java

+7
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,13 @@ private PreferencesMap createBuildPreferences(String _buildPath,
460460
p.put("build.path", _buildPath);
461461
p.put("build.project_name", _primaryClassName);
462462
p.put("build.arch", targetPlatform.getId().toUpperCase());
463+
File sketch_data = sketch.getDataFolder();
464+
if(sketch_data.exists()){
465+
p.put("build.sketch_data", sketch_data.getAbsolutePath());
466+
} else {
467+
p.put("build.sketch_data", "");
468+
}
469+
463470

464471
// Platform.txt should define its own compiler.path. For
465472
// compatibility with earlier 1.5 versions, we define a (ugly,

0 commit comments

Comments
 (0)