Interface ICBuildConfiguration
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IScannerInfoProvider
- All Known Implementing Classes:
CBuildConfiguration, ErrorBuildConfiguration, StandardBuildConfiguration
public interface ICBuildConfiguration
extends org.eclipse.core.runtime.IAdaptable, IScannerInfoProvider
This is the root interface for "new style" CDT build configurations. Adapting
IBuildConfiguration to this interface will get you one of these. From here,
adapt to the specific interface that you need and the configuration will
provide one.
- Since:
- 6.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.resources.IProject[]build(int kind, Map<String, String> args, IConsole console, org.eclipse.core.runtime.IProgressMonitor monitor) Perform the build.voidPerform clean.Ids for the Binary Parsers to use when checking whether a file is a binary that can be launched.org.eclipse.core.resources.IBuildConfigurationReturns the resources build configuration that this CDT build configuration is associated with.default IBinary[]The binaries produced by the build.Returns the default values for the properties.default StringReturn the launch mode associated with this build configuration.default ILaunchTargetReturn the properties for this build configuration.default StringgetProperty(String name) Return the named property.Build Configurations are configurations for a given toolchain.getVariable(String name) Return a build environment variable with a given name.Return all of the build environment variables for this configuration.default voidremoveProperty(String name) Remove the named property.default voidsetBuildEnvironment(Map<String, String> env) Set the environment for the builds.default booleansetProperties(Map<String, String> properties) Set the properties for this build configuration.default voidsetProperty(String name, String value) Set a property to the given value.default booleansupportsProperties(Map<String, String> properties) Returns whether this build configuration supports the given build properties.Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface IScannerInfoProvider
getScannerInformation, subscribe, unsubscribe
-
Field Details
-
TOOLCHAIN_TYPE
- Since:
- 6.4
- See Also:
-
TOOLCHAIN_ID
- Since:
- 6.4
- See Also:
-
-
Method Details
-
getBuildConfiguration
org.eclipse.core.resources.IBuildConfiguration getBuildConfiguration() throws org.eclipse.core.runtime.CoreExceptionReturns the resources build configuration that this CDT build configuration is associated with.- Returns:
- resources build configuration
- Throws:
org.eclipse.core.runtime.CoreException
-
getToolChain
Build Configurations are configurations for a given toolchain.- Returns:
- the toolchain for this build configuration
- Throws:
org.eclipse.core.runtime.CoreException
-
getLaunchMode
Return the launch mode associated with this build configuration.- Since:
- 6.4
-
getLaunchTarget
- Since:
- 9.0
-
getBinaryParserIds
-
getVariable
Return a build environment variable with a given name.- Parameters:
name- build environment variable name- Returns:
- value of the build environment variable.
- Throws:
org.eclipse.core.runtime.CoreException
-
getVariables
Return all of the build environment variables for this configuration.- Returns:
- environment variables
- Throws:
org.eclipse.core.runtime.CoreException
-
build
org.eclipse.core.resources.IProject[] build(int kind, Map<String, String> args, IConsole console, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreExceptionPerform the build.- Parameters:
kind- build typeargs- build argumentsconsole- console to show build outputmonitor- progress monitor- Returns:
- the list of projects for which this builder would like deltas the
next time it is run or
nullif none - Throws:
org.eclipse.core.runtime.CoreException
-
clean
void clean(IConsole console, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException Perform clean.- Parameters:
console- console to show clean outputmonitor- progress monitor- Throws:
org.eclipse.core.runtime.CoreException
-
getBuildOutput
The binaries produced by the build.- Returns:
- binaries produced by the build.
- Throws:
org.eclipse.core.runtime.CoreException- Since:
- 6.1
-
setBuildEnvironment
-
setProperties
-
getProperties
-
getDefaultProperties
-
setProperty
-
removeProperty
Remove the named property.- Parameters:
name- name of the property- Since:
- 6.4
-
getProperty
-
supportsProperties
-