Changeset View
Changeset View
Standalone View
Standalone View
support/ArcanistRuntime.php
| Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | if ($problems) { | ||||
| } | } | ||||
| $problems = implode("\n\n", $problems); | $problems = implode("\n\n", $problems); | ||||
| throw new Exception($problems); | throw new Exception($problems); | ||||
| } | } | ||||
| } | } | ||||
| private function loadConfiguration(PhutilArgumentParser $args) { | private function loadConfiguration(PhutilArgumentParser $args) { | ||||
| $configuration_manager = new ArcanistConfigurationManager(); | $engine = new ArcanistConfigurationEngine(); | ||||
| $cwd = getcwd(); | $working_copy = ArcanistWorkingCopyIdentity::newFromPath(getcwd()); | ||||
| $working_copy = ArcanistWorkingCopyIdentity::newFromPath($cwd); | if ($working_copy) { | ||||
| $configuration_manager->setWorkingCopyIdentity($working_copy); | $engine->setWorkingCopy($working_copy); | ||||
| } | |||||
| $configuration_manager->applyRuntimeArcConfig($args); | |||||
| return $configuration_manager; | return $engine->newConfigurationSourceList(); | ||||
| } | } | ||||
| private function loadLibraries( | private function loadLibraries( | ||||
| PhutilArgumentParser $args, | PhutilArgumentParser $args, | ||||
| ArcanistConfigurationManager $config) { | ArcanistConfigurationManager $config) { | ||||
| $is_trace = $args->getArg('trace'); | $is_trace = $args->getArg('trace'); | ||||
| ▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines | |||||