Skip to content

Commit 262085e

Browse files
committed
Add runtime tool with version to board preferences
If two vendors declare the same tool (name and version) and platform.txt requires {runtime.tool-version.path}, the tool is chosen randomly. This patch completes 6f24fa6
1 parent bbf6b53 commit 262085e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arduino-core/src/processing/app/BaseNoGui.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ static public PreferencesMap getBoardPreferences() {
223223
}
224224
String toolPath = folder.getAbsolutePath();
225225
prefs.put(prefix + tool.getName() + ".path", toolPath);
226+
prefs.put(prefix + tool.getName() + "-" + tool.getVersion() + ".path", toolPath);
226227
PreferencesData.set(prefix + tool.getName() + ".path", toolPath);
227228
PreferencesData.set(prefix + tool.getName() + "-" + tool.getVersion() + ".path", toolPath);
228229
}

0 commit comments

Comments
 (0)