Package org.eclipse.cdt.core.build
Class StandardBuildConfiguration
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.core.build.CBuildConfiguration
org.eclipse.cdt.core.build.StandardBuildConfiguration
- All Implemented Interfaces:
ICBuildConfiguration
,ICBuildConfiguration2
,IConsoleParser
,IConsoleParser2
,IMarkerGenerator
,IElementChangedListener
,IScannerInfoProvider
,org.eclipse.core.runtime.IAdaptable
A Standard Build Configuration that simply calls a specified command for
build and clean. By default, it calls 'make all' and 'make clean'.
- Since:
- 6.2
-
Field Summary
Fields inherited from interface org.eclipse.cdt.core.build.ICBuildConfiguration
DEFAULT_NAME, TOOLCHAIN_ID, TOOLCHAIN_TYPE
Fields inherited from interface org.eclipse.cdt.core.IMarkerGenerator
SEVERITY_ERROR_BUILD, SEVERITY_ERROR_RESOURCE, SEVERITY_INFO, SEVERITY_WARNING
-
Constructor Summary
ConstructorDescriptionStandardBuildConfiguration
(org.eclipse.core.resources.IBuildConfiguration config, String name) StandardBuildConfiguration
(org.eclipse.core.resources.IBuildConfiguration config, String name, IToolChain toolChain, String launchMode) -
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.void
Perform clean.org.eclipse.core.resources.IContainer
org.eclipse.core.resources.IContainer
getProperty
(String name) Return the named property.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.Methods inherited from class org.eclipse.cdt.core.build.CBuildConfiguration
addMarker, addMarker, elementChanged, findCommand, getBinaryParserIds, getBuildConfiguration, getBuildDirectory, getBuildDirectoryURI, getBuildOutput, getCommandFromPath, getDefaultProperties, getLaunchMode, getName, getProject, getProperties, getScannerInfoCache, getScannerInformation, getSettings, getToolChain, getToolChain, getVariable, loadScannerInfoCache, processLine, processLine, refreshScannerInfo, removeProperty, saveScannerInfoCache, setActive, setActive, setBuildEnvironment, setLauncher, setLaunchMode, setProperty, shutdown, startBuildProcess, subscribe, unsubscribe, watchProcess, watchProcess
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.cdt.core.build.ICBuildConfiguration
supportsProperties
-
Field Details
-
BUILD_CONTAINER
- Since:
- 6.4
- See Also:
-
BUILD_COMMAND
- Since:
- 6.4
- See Also:
-
CLEAN_COMMAND
- Since:
- 6.4
- See Also:
-
-
Constructor Details
-
StandardBuildConfiguration
public StandardBuildConfiguration(org.eclipse.core.resources.IBuildConfiguration config, String name) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
StandardBuildConfiguration
public StandardBuildConfiguration(org.eclipse.core.resources.IBuildConfiguration config, String name, IToolChain toolChain, String launchMode) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
-
Method Details
-
getVariables
Description copied from interface:ICBuildConfiguration
Return all of the build environment variables for this configuration.- Specified by:
getVariables
in interfaceICBuildConfiguration
- Overrides:
getVariables
in classCBuildConfiguration
- Returns:
- environment variables
-
setBuildContainer
public void setBuildContainer(org.eclipse.core.resources.IContainer buildContainer) -
setBuildCommand
-
setCleanCommand
-
getBuildContainer
public org.eclipse.core.resources.IContainer getBuildContainer() throws org.eclipse.core.runtime.CoreException- Overrides:
getBuildContainer
in classCBuildConfiguration
- Throws:
org.eclipse.core.runtime.CoreException
-
getDefaultBuildContainer
public org.eclipse.core.resources.IContainer getDefaultBuildContainer() throws org.eclipse.core.runtime.CoreException- Throws:
org.eclipse.core.runtime.CoreException
- Since:
- 6.4
-
getProperty
Description copied from interface:ICBuildConfiguration
Return the named property.- Specified by:
getProperty
in interfaceICBuildConfiguration
- Overrides:
getProperty
in classCBuildConfiguration
- Parameters:
name
- the name of the property
-
setProperties
Description copied from interface:ICBuildConfiguration
Set the properties for this build configuration. These will often come from launch configurations which have build settings as attributes.- Specified by:
setProperties
in interfaceICBuildConfiguration
- Overrides:
setProperties
in classCBuildConfiguration
- Parameters:
properties
- build properties- Returns:
- whether the properties have changed
-
build
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.CoreExceptionDescription copied from interface:ICBuildConfiguration
Perform 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
null
if none - Throws:
org.eclipse.core.runtime.CoreException
-
clean
public void clean(IConsole console, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException Description copied from interface:ICBuildConfiguration
Perform clean.- Parameters:
console
- console to show clean outputmonitor
- progress monitor- Throws:
org.eclipse.core.runtime.CoreException
-