From ee6d70d8eebdce686d0dceb508d63da926f982dc Mon Sep 17 00:00:00 2001 From: ficeto Date: Wed, 13 May 2015 17:09:27 +0300 Subject: [PATCH] export sketch data folder to the build config --- arduino-core/src/processing/app/debug/Compiler.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arduino-core/src/processing/app/debug/Compiler.java b/arduino-core/src/processing/app/debug/Compiler.java index e84ba4eda..502aded64 100644 --- a/arduino-core/src/processing/app/debug/Compiler.java +++ b/arduino-core/src/processing/app/debug/Compiler.java @@ -460,6 +460,13 @@ public class Compiler implements MessageConsumer { p.put("build.path", _buildPath); p.put("build.project_name", _primaryClassName); p.put("build.arch", targetPlatform.getId().toUpperCase()); + File sketch_data = sketch.getDataFolder(); + if(sketch_data.exists()){ + p.put("build.sketch_data", sketch_data.getAbsolutePath()); + } else { + p.put("build.sketch_data", ""); + } + // Platform.txt should define its own compiler.path. For // compatibility with earlier 1.5 versions, we define a (ugly,