public interface BuildEngine
Modifier and Type | Interface and Description |
---|---|
static class |
BuildEngine.BuildEngineResult |
Modifier and Type | Method and Description |
---|---|
BuildEngine.BuildEngineResult |
build(BuildEngineBuildContext buildContext,
ExecutionContext executionContext,
BuildRule rule)
Build the given build rule and return a future to the build rule success.
|
BuildResult |
getBuildRuleResult(BuildTarget buildTarget)
Returns the build result of the build rule associated with the given build target.
|
int |
getNumRulesToBuild(Iterable<BuildRule> rule)
Calculate the total number of transitive build rules processed from the given roots.
|
boolean |
isRuleBuilt(BuildTarget buildTarget)
Returns whether the build rule associated with the build target has been successfully built.
|
void |
terminateBuildWithFailure(Throwable failure)
Marks build as failed with the given Throwable.
|
int getNumRulesToBuild(Iterable<BuildRule> rule)
BuildEngine.BuildEngineResult build(BuildEngineBuildContext buildContext, ExecutionContext executionContext, BuildRule rule)
@Nullable BuildResult getBuildRuleResult(BuildTarget buildTarget) throws ExecutionException, InterruptedException
null
if the build rule has not yet been built.boolean isRuleBuilt(BuildTarget buildTarget) throws InterruptedException
InterruptedException
void terminateBuildWithFailure(Throwable failure)
failure
-