C# Class Bari.Core.Commands.BuildCommand

Implements 'build' command, which runs one or more builder (IBuilder) for a Project, Module or product.
Inheritance: ICommand, IHasBuildTarget
Datei anzeigen Open project: vigoo/bari

Public Methods

Method Description
BuildCommand ( IBuildContextFactory buildContextFactory, IEnumerable projectBuilders, [ targetRoot, ICommandTargetParser targetParser, IUserOutput output, IEnumerable postProcessorFactories, ICoreBuilderFactory coreBuilderFactory ) : System

Constructs the build command

Run ( Suite suite, string parameters ) : bool

Runs the command

Private Methods

Method Description
AddProductBuildStep ( IBuildContext context, Product product, IBuilder rootBuilder ) : IBuilder
RunWithProjects ( CommandTarget target, bool dumpMode, bool dumpDepsMode ) : void

Method Details

BuildCommand() public method

Constructs the build command
public BuildCommand ( IBuildContextFactory buildContextFactory, IEnumerable projectBuilders, [ targetRoot, ICommandTargetParser targetParser, IUserOutput output, IEnumerable postProcessorFactories, ICoreBuilderFactory coreBuilderFactory ) : System
buildContextFactory IBuildContextFactory Interface for creating new build contexts
projectBuilders IEnumerable The set of registered project builder factories
targetRoot [ Build target root directory
targetParser ICommandTargetParser Command target parser implementation to be used
output IUserOutput Output interface
postProcessorFactories IEnumerable Factory for post processors
coreBuilderFactory ICoreBuilderFactory Factory for core builders
return System

Run() public method

Runs the command
public Run ( Suite suite, string parameters ) : bool
suite Suite The current suite model the command is applied to
parameters string Parameters given to the command (in unprocessed form)
return bool