Search in sources :

Example 6 with IContributedEnvironment

use of org.eclipse.cdt.core.envvar.IContributedEnvironment in project arduino-eclipse-plugin by Sloeber.

the class Common method setBuildEnvironmentVariable.

public static void setBuildEnvironmentVariable(ICConfigurationDescription confdesc, String key, String value) {
    IEnvironmentVariableManager envManager = CCorePlugin.getDefault().getBuildEnvironmentManager();
    IContributedEnvironment contribEnv = envManager.getContributedEnvironment();
    setBuildEnvironmentVariable(contribEnv, confdesc, key, value);
}
Also used : IContributedEnvironment(org.eclipse.cdt.core.envvar.IContributedEnvironment) IEnvironmentVariableManager(org.eclipse.cdt.core.envvar.IEnvironmentVariableManager)

Aggregations

IContributedEnvironment (org.eclipse.cdt.core.envvar.IContributedEnvironment)6 IEnvironmentVariableManager (org.eclipse.cdt.core.envvar.IEnvironmentVariableManager)5 InternalBoardDescriptor (io.sloeber.core.InternalBoardDescriptor)2 File (java.io.File)2 IOException (java.io.IOException)2 IEnvironmentVariable (org.eclipse.cdt.core.envvar.IEnvironmentVariable)2 ICConfigurationDescription (org.eclipse.cdt.core.settings.model.ICConfigurationDescription)2 ICProjectDescription (org.eclipse.cdt.core.settings.model.ICProjectDescription)2 IPath (org.eclipse.core.runtime.IPath)2 BoardDescriptor (io.sloeber.core.api.BoardDescriptor)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Pattern (java.util.regex.Pattern)1 EnvironmentVariable (org.eclipse.cdt.core.envvar.EnvironmentVariable)1 CoreModel (org.eclipse.cdt.core.model.CoreModel)1 IBinary (org.eclipse.cdt.core.model.IBinary)1 BuildException (org.eclipse.cdt.managedbuilder.core.BuildException)1 IConfiguration (org.eclipse.cdt.managedbuilder.core.IConfiguration)1 IManagedBuildInfo (org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo)1 IManagedCommandLineGenerator (org.eclipse.cdt.managedbuilder.core.IManagedCommandLineGenerator)1