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
FieldsFields inherited from interface org.eclipse.cdt.core.build.ICBuildConfiguration
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
ConstructorsConstructorDescriptionStandardBuildConfiguration
(org.eclipse.core.resources.IBuildConfiguration config, String name) StandardBuildConfiguration
(org.eclipse.core.resources.IBuildConfiguration config, String name, IToolChain toolChain, String launchMode, ILaunchTarget launchTarget) -
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
The URI for the directory in which the build is executed.org.eclipse.core.resources.IContainer
getProperty
(String name) Return the named property.Return all of the build environment variables for this configuration.boolean
processLine
(String line) Parse one line of output.void
setBuildCommand
(String buildCommand) Set the build command to use.void
setBuildContainer
(org.eclipse.core.resources.IContainer buildContainer) void
setCleanCommand
(String cleanCommand) Set the build command to use.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, getBuildOutput, getCommandFromPath, getDefaultProperties, getLaunchMode, getLaunchTarget, getName, getProject, getProperties, getScannerInfoCache, getScannerInformation, getSettings, getToolChain, getToolChain, getVariable, loadScannerInfoCache, processLine, refreshScannerInfo, removeProperty, saveScannerInfoCache, setActive, setActive, setBuildEnvironment, setLauncher, 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, ILaunchTarget launchTarget) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
- Since:
- 9.0
-
-
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
Set the build command to use. The string will be converted to command line arguments usingCommandLineUtil
- Since:
- 9.0
-
setCleanCommand
Set the build command to use. The string will be converted to command line arguments usingCommandLineUtil
- Since:
- 9.0
-
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
-
processLine
Description copied from interface:IConsoleParser
Parse one line of output.- Specified by:
processLine
in interfaceIConsoleParser
- Overrides:
processLine
in classCBuildConfiguration
- Parameters:
line
-- Returns:
- true if line was successfully processed; skip other console parsers
false - try other console parsers
-
getBuildDirectoryURI
Description copied from interface:ICBuildConfiguration2
The URI for the directory in which the build is executed.- Specified by:
getBuildDirectoryURI
in interfaceICBuildConfiguration2
- Overrides:
getBuildDirectoryURI
in classCBuildConfiguration
- Throws:
org.eclipse.core.runtime.CoreException
-