1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

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 6f24fa6cec
This commit is contained in:
Martino Facchin 2018-07-18 11:41:52 +02:00 committed by Cristian Maglie
parent bf42f26471
commit 418e3def10

View File

@ -189,6 +189,7 @@ public class BaseNoGui {
}
String toolPath = folder.getAbsolutePath();
prefs.put(prefix + tool.getName() + ".path", toolPath);
prefs.put(prefix + tool.getName() + "-" + tool.getVersion() + ".path", toolPath);
PreferencesData.set(prefix + tool.getName() + ".path", toolPath);
PreferencesData.set(prefix + tool.getName() + "-" + tool.getVersion() + ".path", toolPath);
}