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_TYPEFields 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.voidPerform clean.org.eclipse.core.resources.IContainerThe URI for the directory in which the build is executed.org.eclipse.core.resources.IContainergetProperty(String name) Return the named property.Return all of the build environment variables for this configuration.booleanprocessLine(String line) Parse one line of output.voidsetBuildCommand(String buildCommand) Set the build command to use.voidsetBuildContainer(org.eclipse.core.resources.IContainer buildContainer) voidsetCleanCommand(String cleanCommand) Set the build command to use.booleansetProperties(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, watchProcessMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods 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:ICBuildConfigurationReturn all of the build environment variables for this configuration.- Specified by:
getVariablesin interfaceICBuildConfiguration- Overrides:
getVariablesin 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:
getBuildContainerin 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:ICBuildConfigurationReturn the named property.- Specified by:
getPropertyin interfaceICBuildConfiguration- Overrides:
getPropertyin classCBuildConfiguration- Parameters:
name- the name of the property
-
setProperties
Description copied from interface:ICBuildConfigurationSet the properties for this build configuration. These will often come from launch configurations which have build settings as attributes.- Specified by:
setPropertiesin interfaceICBuildConfiguration- Overrides:
setPropertiesin 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:ICBuildConfigurationPerform 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
nullif 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:ICBuildConfigurationPerform clean.- Parameters:
console- console to show clean outputmonitor- progress monitor- Throws:
org.eclipse.core.runtime.CoreException
-
processLine
Description copied from interface:IConsoleParserParse one line of output.- Specified by:
processLinein interfaceIConsoleParser- Overrides:
processLinein classCBuildConfiguration- Parameters:
line-- Returns:
- true if line was successfully processed; skip other console parsers
false - try other console parsers
-
getBuildDirectoryURI
Description copied from interface:ICBuildConfiguration2The URI for the directory in which the build is executed.- Specified by:
getBuildDirectoryURIin interfaceICBuildConfiguration2- Overrides:
getBuildDirectoryURIin classCBuildConfiguration- Throws:
org.eclipse.core.runtime.CoreException
-