public class ErrorBuildConfiguration extends org.eclipse.core.runtime.PlatformObject implements ICBuildConfiguration, ICBuildConfiguration2
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static org.eclipse.cdt.core.build.ErrorBuildConfiguration.Provider |
PROVIDER |
DEFAULT_NAME, TOOLCHAIN_ID, TOOLCHAIN_TYPE
Constructor and Description |
---|
ErrorBuildConfiguration(org.eclipse.core.resources.IBuildConfiguration config,
String errorMessage) |
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.
|
URI |
getBuildDirectoryURI()
The URI for the directory in which the build is executed.
|
IScannerInfo |
getScannerInformation(org.eclipse.core.resources.IResource resource)
The receiver will answer the current state of the build information for the
resource specified in the argument.
|
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.
|
void |
setActive()
Mark the Build Configuration as active
|
void |
setErrorMessage(String errorMessage) |
void |
subscribe(org.eclipse.core.resources.IResource resource,
IScannerInfoChangeListener listener)
The receiver will register the listener specified in the argument
to receive change notifications when the information for the
IResource it is responsible for changes. |
void |
unsubscribe(org.eclipse.core.resources.IResource resource,
IScannerInfoChangeListener listener)
The receiver will no longer notify the listener specified in
the argument when information about the reource it is responsible
for changes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBuildOutput, getDefaultProperties, getLaunchMode, getProperties, getProperty, removeProperty, setBuildEnvironment, setProperties, setProperty, supportsProperties
public static final String NAME
public static final org.eclipse.cdt.core.build.ErrorBuildConfiguration.Provider PROVIDER
public ErrorBuildConfiguration(org.eclipse.core.resources.IBuildConfiguration config, String errorMessage)
public void setErrorMessage(String errorMessage)
public 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
ICBuildConfiguration
build
in interface ICBuildConfiguration
kind
- build typeargs
- build argumentsconsole
- console to show build outputmonitor
- progress monitornull
if noneorg.eclipse.core.runtime.CoreException
public void clean(IConsole console, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
ICBuildConfiguration
clean
in interface ICBuildConfiguration
console
- console to show clean outputmonitor
- progress monitororg.eclipse.core.runtime.CoreException
public IScannerInfo getScannerInformation(org.eclipse.core.resources.IResource resource)
IScannerInfoProvider
getScannerInformation
in interface IScannerInfoProvider
public void subscribe(org.eclipse.core.resources.IResource resource, IScannerInfoChangeListener listener)
IScannerInfoProvider
IResource
it is responsible for changes.subscribe
in interface IScannerInfoProvider
public void unsubscribe(org.eclipse.core.resources.IResource resource, IScannerInfoChangeListener listener)
IScannerInfoProvider
unsubscribe
in interface IScannerInfoProvider
public void setActive()
ICBuildConfiguration2
setActive
in interface ICBuildConfiguration2
public URI getBuildDirectoryURI() throws org.eclipse.core.runtime.CoreException
ICBuildConfiguration2
getBuildDirectoryURI
in interface ICBuildConfiguration2
org.eclipse.core.runtime.CoreException
public org.eclipse.core.resources.IBuildConfiguration getBuildConfiguration() throws org.eclipse.core.runtime.CoreException
ICBuildConfiguration
getBuildConfiguration
in interface ICBuildConfiguration
org.eclipse.core.runtime.CoreException
public IToolChain getToolChain() throws org.eclipse.core.runtime.CoreException
ICBuildConfiguration
getToolChain
in interface ICBuildConfiguration
org.eclipse.core.runtime.CoreException
public String getBinaryParserId() throws org.eclipse.core.runtime.CoreException
ICBuildConfiguration
getBinaryParserId
in interface ICBuildConfiguration
org.eclipse.core.runtime.CoreException
public IEnvironmentVariable getVariable(String name) throws org.eclipse.core.runtime.CoreException
ICBuildConfiguration
getVariable
in interface ICBuildConfiguration
name
- build environment variable nameorg.eclipse.core.runtime.CoreException
public IEnvironmentVariable[] getVariables() throws org.eclipse.core.runtime.CoreException
ICBuildConfiguration
getVariables
in interface ICBuildConfiguration
org.eclipse.core.runtime.CoreException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.