public class Build extends Object implements Closeable
Constructor and Description |
---|
Build(ActionGraphBuilder graphBuilder,
Cell rootCell,
BuildEngine buildEngine,
ArtifactCache artifactCache,
JavaPackageFinder javaPackageFinder,
Clock clock,
ExecutionContext executionContext,
boolean isKeepGoing) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ExitCode |
executeAndPrintFailuresToEventBus(Iterable<BuildTarget> targetsish,
BuckEventBus eventBus,
Console console,
Optional<Path> pathToBuildReport) |
ExecutionContext |
getExecutionContext() |
ActionGraphBuilder |
getGraphBuilder() |
com.google.common.collect.ImmutableList<BuildRule> |
getRulesToBuild(Iterable<? extends BuildTarget> targetish)
* Converts given BuildTargetPaths into BuildRules
|
ExitCode |
waitForBuildToFinishAndPrintFailuresToEventBus(com.google.common.collect.ImmutableList<BuildRule> rulesToBuild,
List<BuildEngine.BuildEngineResult> resultFutures,
BuckEventBus eventBus,
Console console,
Optional<Path> pathToBuildReport)
* Waits for the given BuildRules to finish building (as tracked by the corresponding Futures).
|
public Build(ActionGraphBuilder graphBuilder, Cell rootCell, BuildEngine buildEngine, ArtifactCache artifactCache, JavaPackageFinder javaPackageFinder, Clock clock, ExecutionContext executionContext, boolean isKeepGoing)
public ActionGraphBuilder getGraphBuilder()
public ExecutionContext getExecutionContext()
public ExitCode executeAndPrintFailuresToEventBus(Iterable<BuildTarget> targetsish, BuckEventBus eventBus, Console console, Optional<Path> pathToBuildReport) throws Exception
Exception
public com.google.common.collect.ImmutableList<BuildRule> getRulesToBuild(Iterable<? extends BuildTarget> targetish)
targetish
- public ExitCode waitForBuildToFinishAndPrintFailuresToEventBus(com.google.common.collect.ImmutableList<BuildRule> rulesToBuild, List<BuildEngine.BuildEngineResult> resultFutures, BuckEventBus eventBus, Console console, Optional<Path> pathToBuildReport) throws Exception
Exception
public void close()
close
in interface Closeable
close
in interface AutoCloseable