public interface ICBuildConfiguration extends org.eclipse.core.runtime.IAdaptable, IScannerInfoProvider
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAME
CDT doesn't like that the Platform default config name is an empty string.
|
static String |
TOOLCHAIN_ID |
static String |
TOOLCHAIN_TYPE |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.resources.IProject[] |
build(int kind,
Map<String,String> args,
IConsole console,
org.eclipse.core.runtime.IProgressMonitor monitor)
Perform the build.
|
void |
clean(IConsole console,
org.eclipse.core.runtime.IProgressMonitor monitor)
Perform clean.
|
String |
getBinaryParserId()
Ids for the Binary Parsers to use when checking whether a file is a
binary that can be launched.
|
org.eclipse.core.resources.IBuildConfiguration |
getBuildConfiguration()
Returns the resources build configuration that this CDT build configuration
is associated with.
|
default IBinary[] |
getBuildOutput()
The binaries produced by the build.
|
default Map<String,String> |
getDefaultProperties()
Returns the default values for the properties.
|
default String |
getLaunchMode()
Return the launch mode associated with this build configuration.
|
default Map<String,String> |
getProperties()
Return the properties for this build configuration.
|
default String |
getProperty(String name)
Return the named property.
|
IToolChain |
getToolChain()
Build Configurations are configurations for a given toolchain.
|
IEnvironmentVariable |
getVariable(String name)
Return a build environment variable with a given name.
|
IEnvironmentVariable[] |
getVariables()
Return all of the build environment variables for this configuration.
|
default void |
removeProperty(String name)
Remove the named property.
|
default void |
setBuildEnvironment(Map<String,String> env)
Set the environment for the builds.
|
default boolean |
setProperties(Map<String,String> properties)
Set the properties for this build configuration.
|
default void |
setProperty(String name,
String value)
Set a property to the given value.
|
default boolean |
supportsProperties(Map<String,String> properties)
Returns whether this build configuration supports the given build
properties.
|
getScannerInformation, subscribe, unsubscribe
static final String DEFAULT_NAME
static final String TOOLCHAIN_TYPE
static final String TOOLCHAIN_ID
org.eclipse.core.resources.IBuildConfiguration getBuildConfiguration() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IToolChain getToolChain() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
default String getLaunchMode()
String getBinaryParserId() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IEnvironmentVariable getVariable(String name) throws org.eclipse.core.runtime.CoreException
name
- build environment variable nameorg.eclipse.core.runtime.CoreException
IEnvironmentVariable[] getVariables() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
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.CoreException
kind
- build typeargs
- build argumentsconsole
- console to show build outputmonitor
- progress monitornull
if noneorg.eclipse.core.runtime.CoreException
void clean(IConsole console, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
console
- console to show clean outputmonitor
- progress monitororg.eclipse.core.runtime.CoreException
default IBinary[] getBuildOutput() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
default void setBuildEnvironment(Map<String,String> env)
env
- build environmentdefault boolean setProperties(Map<String,String> properties)
properties
- build propertiesdefault Map<String,String> getProperties()
default Map<String,String> getDefaultProperties()
default void setProperty(String name, String value)
name
- the name of the propertyvalue
- the new value for the propertydefault void removeProperty(String name)
name
- name of the propertydefault String getProperty(String name)
name
- the name of the propertyCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.