use of io.sloeber.core.api.Json.ArduinoPlatformTool in project arduino-eclipse-plugin by Sloeber.
the class BoardsManager method getEnvVarPlatformFileTools.
private static Map<String, String> getEnvVarPlatformFileTools(ArduinoPlatformVersion platformVersion) {
HashMap<String, String> vars = new HashMap<>();
ArduinoPackage pkg = platformVersion.getParent().getParent();
for (ArduinoPlatformTooldDependency tool : platformVersion.getToolsDependencies()) {
ArduinoPlatformTool theTool = pkg.getTool(tool.getName());
if (theTool == null) {
// $NON-NLS-1$ //$NON-NLS-2$
System.err.println("Did not find " + tool.getName() + " in package with ID " + pkg.getID());
} else {
vars.putAll(theTool.getEnvVars(null));
}
}
return vars;
}
Aggregations