public class MainWithoutNailgun extends Object
This main will take care of initializing all the state that buck needs given that the buck state is not stored. It will also take care of error handling and shutdown procedures given that we are not running as a nailgun server.
Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.ImmutableMap<String,String> |
clientEnvironment |
protected Platform |
platform |
protected InputStream |
stdIn |
Constructor and Description |
---|
MainWithoutNailgun() |
Modifier and Type | Method and Description |
---|---|
protected BuildId |
getBuildId() |
protected MainRunner.KnownRuleTypesFactoryFactory |
getKnownRuleTypesFactory() |
static void |
main(String[] args)
The entry point of a buck command.
|
protected MainRunner |
prepareMainRunner(BackgroundTaskManager bgTaskManager) |
protected final InputStream stdIn
protected final com.google.common.collect.ImmutableMap<String,String> clientEnvironment
protected final Platform platform
public static void main(String[] args)
args
- protected MainRunner prepareMainRunner(BackgroundTaskManager bgTaskManager)
MainRunner
for running the buck command, with all the base state
setup.protected MainRunner.KnownRuleTypesFactoryFactory getKnownRuleTypesFactory()
MainRunner.KnownRuleTypesFactoryFactory
for this command