public class BuildCommand extends AbstractCommand
Modifier and Type | Class and Description |
---|---|
static class |
BuildCommand.ActionGraphCreationException |
commandArgsFile
Constructor and Description |
---|
BuildCommand() |
BuildCommand(List<String> arguments) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertArguments(CommandRunnerParams params) |
protected ExitCode |
executeLocalBuild(CommandRunnerParams params,
com.facebook.buck.cli.BuildCommand.GraphsAndBuildTargets graphsAndBuildTargets,
WeightedListeningExecutorService executor,
Optional<ThriftRuleKeyLogger> ruleKeyLogger,
Optional<CountDownLatch> initializeBuildLatch,
RuleKeyCacheScope<RuleKey> ruleKeyCacheScope,
AtomicReference<Build> buildReference) |
protected Iterable<BuildTarget> |
getAdditionalTargetsToBuild(com.facebook.buck.cli.BuildCommand.GraphsAndBuildTargets graphsAndBuildTargets) |
List<String> |
getArguments() |
Optional<BuildType> |
getBuildEngineMode() |
Iterable<BuckEventListener> |
getEventListeners(Map<ExecutorPool,com.google.common.util.concurrent.ListeningExecutorService> executorPool,
ScheduledExecutorService scheduledExecutorService)
If any of these listeners also extends Closeable, it will be closed by Main.
|
protected ExecutionContext.Builder |
getExecutionContextBuilder(CommandRunnerParams params) |
Optional<Path> |
getPathToBuildReport(BuckConfig buckConfig) |
String |
getShortDescription() |
boolean |
isCodeCoverageEnabled() |
boolean |
isDebugEnabled() |
boolean |
isKeepGoing() |
boolean |
isReadOnly() |
boolean |
isRemoteExecutionForceDisabled() |
boolean |
isSourceControlStatsGatheringEnabled() |
boolean |
performsBuild() |
protected com.facebook.buck.cli.BuildCommand.BuildRunResult |
run(CommandRunnerParams params,
CommandThreadManager commandThreadManager,
java.util.function.Function<com.google.common.collect.ImmutableList<TargetNodeSpec>,com.google.common.collect.ImmutableList<TargetNodeSpec>> targetNodeSpecEnhancer,
com.google.common.collect.ImmutableSet<String> additionalTargets) |
ExitCode |
runWithoutHelp(CommandRunnerParams params) |
void |
setKeepGoing(boolean keepGoing) |
protected boolean |
shouldReportAbsolutePaths() |
addCommandSpecificConfigOverrides, convertArgumentsToBuildTargets, createParsingContext, getCommandArgsFile, getCommandLineBuildTargetNormalizer, getConcurrencyLimit, getConfigOverrides, getEnableParserProfiling, getEventsOutputPath, getExcludeIncompatibleTargets, getExecutionContext, getHostPlatform, getLogConfig, getTargetPlatforms, handleException, handleException, isNoCache, isReuseCurrentConfig, matchBuildTargetsWithLabelsFromSpecs, prepareExecutionContext, printUsage, printWarning, printWarning, run, runHelp
getPluginManager, setPluginManager
public boolean isCodeCoverageEnabled()
public boolean isDebugEnabled()
public boolean isKeepGoing()
protected boolean shouldReportAbsolutePaths()
public void setKeepGoing(boolean keepGoing)
public boolean isRemoteExecutionForceDisabled()
public Optional<Path> getPathToBuildReport(BuckConfig buckConfig)
Optional.empty()
.public ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception
runWithoutHelp
in class AbstractCommand
Exception
protected void assertArguments(CommandRunnerParams params)
CommandLineException
- if arguments provided are incorrectprotected com.facebook.buck.cli.BuildCommand.BuildRunResult run(CommandRunnerParams params, CommandThreadManager commandThreadManager, java.util.function.Function<com.google.common.collect.ImmutableList<TargetNodeSpec>,com.google.common.collect.ImmutableList<TargetNodeSpec>> targetNodeSpecEnhancer, com.google.common.collect.ImmutableSet<String> additionalTargets) throws Exception
Exception
protected ExitCode executeLocalBuild(CommandRunnerParams params, com.facebook.buck.cli.BuildCommand.GraphsAndBuildTargets graphsAndBuildTargets, WeightedListeningExecutorService executor, Optional<ThriftRuleKeyLogger> ruleKeyLogger, Optional<CountDownLatch> initializeBuildLatch, RuleKeyCacheScope<RuleKey> ruleKeyCacheScope, AtomicReference<Build> buildReference) throws Exception
Exception
protected ExecutionContext.Builder getExecutionContextBuilder(CommandRunnerParams params)
getExecutionContextBuilder
in class AbstractCommand
protected Iterable<BuildTarget> getAdditionalTargetsToBuild(com.facebook.buck.cli.BuildCommand.GraphsAndBuildTargets graphsAndBuildTargets)
public boolean isReadOnly()
public boolean isSourceControlStatsGatheringEnabled()
isSourceControlStatsGatheringEnabled
in interface Command
isSourceControlStatsGatheringEnabled
in class AbstractCommand
public String getShortDescription()
public Iterable<BuckEventListener> getEventListeners(Map<ExecutorPool,com.google.common.util.concurrent.ListeningExecutorService> executorPool, ScheduledExecutorService scheduledExecutorService)
Command
getEventListeners
in interface Command
getEventListeners
in class AbstractCommand
public boolean performsBuild()
performsBuild
in interface Command
performsBuild
in class AbstractCommand