@@ -164,16 +164,20 @@ static public PreferencesMap getBoardPreferences() {
164
164
prefs .put ("name" , extendedName );
165
165
166
166
// Resolve tools needed for this board
167
+ List <ContributedTool > requiredTools = new ArrayList <>();
168
+
169
+ // Add all tools dependencies specified in package index
167
170
ContributedPlatform platform = indexer .getContributedPlaform (getTargetPlatform ());
168
- if (platform != null ) {
169
- String prefix = "runtime.tools." ;
170
- for (ContributedTool tool : platform .getResolvedTools ()) {
171
- File folder = tool .getDownloadableContribution (getPlatform ()).getInstalledFolder ();
172
- String toolPath = folder .getAbsolutePath ();
173
- prefs .put (prefix + tool .getName () + ".path" , toolPath );
174
- PreferencesData .set (prefix + tool .getName () + ".path" , toolPath );
175
- PreferencesData .set (prefix + tool .getName () + "-" + tool .getVersion () + ".path" , toolPath );
176
- }
171
+ if (platform != null )
172
+ requiredTools .addAll (platform .getResolvedTools ());
173
+
174
+ String prefix = "runtime.tools." ;
175
+ for (ContributedTool tool : requiredTools ) {
176
+ File folder = tool .getDownloadableContribution (getPlatform ()).getInstalledFolder ();
177
+ String toolPath = folder .getAbsolutePath ();
178
+ prefs .put (prefix + tool .getName () + ".path" , toolPath );
179
+ PreferencesData .set (prefix + tool .getName () + ".path" , toolPath );
180
+ PreferencesData .set (prefix + tool .getName () + "-" + tool .getVersion () + ".path" , toolPath );
177
181
}
178
182
return prefs ;
179
183
}
0 commit comments