public class StandardBuildConfiguration extends CBuildConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_COMMAND |
static String |
BUILD_CONTAINER |
static String |
CLEAN_COMMAND |
DEFAULT_NAME, TOOLCHAIN_ID, TOOLCHAIN_TYPE
SEVERITY_ERROR_BUILD, SEVERITY_ERROR_RESOURCE, SEVERITY_INFO, SEVERITY_WARNING
Constructor and Description |
---|
StandardBuildConfiguration(org.eclipse.core.resources.IBuildConfiguration config,
String name) |
StandardBuildConfiguration(org.eclipse.core.resources.IBuildConfiguration config,
String name,
IToolChain toolChain,
String launchMode) |
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.
|
org.eclipse.core.resources.IContainer |
getBuildContainer() |
org.eclipse.core.resources.IContainer |
getDefaultBuildContainer() |
String |
getProperty(String name)
Return the named property.
|
IEnvironmentVariable[] |
getVariables()
Return all of the build environment variables for this configuration.
|
void |
setBuildCommand(String[] buildCommand) |
void |
setBuildContainer(org.eclipse.core.resources.IContainer buildContainer) |
void |
setCleanCommand(String[] cleanCommand) |
boolean |
setProperties(Map<String,String> properties)
Set the properties for this build configuration.
|
addMarker, addMarker, elementChanged, findCommand, getBinaryParserId, getBuildConfiguration, getBuildDirectory, getBuildDirectoryURI, getBuildOutput, getCommandFromPath, getDefaultProperties, getLaunchMode, getName, getProject, getProperties, getScannerInfoCache, getScannerInformation, getSettings, getToolChain, getVariable, loadScannerInfoCache, processLine, processLine, refreshScannerInfo, removeProperty, saveScannerInfoCache, setActive, setActive, setBuildEnvironment, setLaunchMode, setProperty, shutdown, startBuildProcess, subscribe, unsubscribe, watchProcess, watchProcess, watchProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsProperties
public static final String BUILD_CONTAINER
public static final String BUILD_COMMAND
public static final String CLEAN_COMMAND
public StandardBuildConfiguration(org.eclipse.core.resources.IBuildConfiguration config, String name) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public StandardBuildConfiguration(org.eclipse.core.resources.IBuildConfiguration config, String name, IToolChain toolChain, String launchMode) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public IEnvironmentVariable[] getVariables()
ICBuildConfiguration
getVariables
in interface ICBuildConfiguration
getVariables
in class CBuildConfiguration
public void setBuildContainer(org.eclipse.core.resources.IContainer buildContainer)
public void setBuildCommand(String[] buildCommand)
public void setCleanCommand(String[] cleanCommand)
public org.eclipse.core.resources.IContainer getBuildContainer() throws org.eclipse.core.runtime.CoreException
getBuildContainer
in class CBuildConfiguration
org.eclipse.core.runtime.CoreException
public org.eclipse.core.resources.IContainer getDefaultBuildContainer() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public String getProperty(String name)
ICBuildConfiguration
getProperty
in interface ICBuildConfiguration
getProperty
in class CBuildConfiguration
name
- the name of the propertypublic boolean setProperties(Map<String,String> properties)
ICBuildConfiguration
setProperties
in interface ICBuildConfiguration
setProperties
in class CBuildConfiguration
properties
- build propertiespublic 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
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
console
- console to show clean outputmonitor
- progress monitororg.eclipse.core.runtime.CoreException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.