Search in sources :

Example 1 with ArduinoPlatformTool

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;
}
Also used : ArduinoPackage(io.sloeber.core.api.Json.ArduinoPackage) HashMap(java.util.HashMap) ArduinoPlatformTooldDependency(io.sloeber.core.api.Json.ArduinoPlatformTooldDependency) ArduinoPlatformTool(io.sloeber.core.api.Json.ArduinoPlatformTool)

Aggregations

ArduinoPackage (io.sloeber.core.api.Json.ArduinoPackage)1 ArduinoPlatformTool (io.sloeber.core.api.Json.ArduinoPlatformTool)1 ArduinoPlatformTooldDependency (io.sloeber.core.api.Json.ArduinoPlatformTooldDependency)1 HashMap (java.util.HashMap)1