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

public class StandardBuildConfiguration extends CBuildConfiguration
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 Details

  • 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

      public IEnvironmentVariable[] getVariables()
      Description copied from interface: ICBuildConfiguration
      Return all of the build environment variables for this configuration.
      Specified by:
      getVariables in interface ICBuildConfiguration
      Overrides:
      getVariables in class CBuildConfiguration
      Returns:
      environment variables
    • setBuildContainer

      public void setBuildContainer(org.eclipse.core.resources.IContainer buildContainer)
    • setBuildCommand

      public void setBuildCommand(String[] buildCommand)
    • setCleanCommand

      public void setCleanCommand(String[] cleanCommand)
    • getBuildContainer

      public org.eclipse.core.resources.IContainer getBuildContainer() throws org.eclipse.core.runtime.CoreException
      Overrides:
      getBuildContainer in class CBuildConfiguration
      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

      public String getProperty(String name)
      Description copied from interface: ICBuildConfiguration
      Return the named property.
      Specified by:
      getProperty in interface ICBuildConfiguration
      Overrides:
      getProperty in class CBuildConfiguration
      Parameters:
      name - the name of the property
    • setProperties

      public boolean setProperties(Map<String,String> properties)
      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 interface ICBuildConfiguration
      Overrides:
      setProperties in class CBuildConfiguration
      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.CoreException
      Description copied from interface: ICBuildConfiguration
      Perform the build.
      Parameters:
      kind - build type
      args - build arguments
      console - console to show build output
      monitor - 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 output
      monitor - progress monitor
      Throws:
      org.eclipse.core.runtime.CoreException