Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BUCK_CONFIG_OVERRIDE_FILE_NAME |
Modifier and Type | Method and Description |
---|---|
static Config |
createConfigFromFiles(Path root,
com.google.common.collect.ImmutableList<Path> configFiles)
Generates a config by merging configs from specified locations on disk in order of the list
supplied.
|
static Config |
createDefaultConfig(Path root)
Convienence constructor
|
static Config |
createDefaultConfig(Path root,
com.google.common.collect.ImmutableList<Path> configFiles,
RawConfig configOverrides)
Generates a config by merging configs from specified locations on disk in order of the list
supplied.
|
static Config |
createDefaultConfig(Path root,
RawConfig configOverrides)
Generates a Buck config by merging configs from specified locations on disk.
|
static com.google.common.collect.ImmutableList<Path> |
getDefaultConfigurationFiles(AbsPath root)
Abs-path version of
getDefaultConfigurationFiles(Path) . |
static com.google.common.collect.ImmutableList<Path> |
getDefaultConfigurationFiles(Path root)
Gets all configuration files that should be used for parsing the project configuration
|
static Path |
getMainConfigurationFile(Path root) |
static com.google.common.collect.ImmutableList<Path> |
getRepoConfigurationFiles(Path root)
Gets the repository defined configuration files (excluding configuration directories) that
should be used for parsing the project configuration.
|
static com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,String>> |
parseConfigFile(Path file) |
public static final String DEFAULT_BUCK_CONFIG_OVERRIDE_FILE_NAME
public static Config createDefaultConfig(Path root) throws IOException
IOException
public static Config createDefaultConfig(Path root, RawConfig configOverrides) throws IOException
In order:
/etc/buckconfig.d
/etc/buckconfig
<HOME>/buckconfig.d
<PROJECT ROOT >/buckconfig.d
<HOME>/.buckconfig
<PROJECT ROOT>/.buckconfig
<PROJECT ROOT>/.buckconfig.local
root
- Project root.configOverrides
- Config overrides to merge in after the other sources.Config
.IOException
- on any exceptions during the underlying filesystem operations.public static Config createDefaultConfig(Path root, com.google.common.collect.ImmutableList<Path> configFiles, RawConfig configOverrides) throws IOException
root
- Project root.configFiles
- the files to load configs from, in order of precedence.configOverrides
- Config overrides to merge in after the other sources.Config
.IOException
- on any exceptions during the underlying filesystem operations.public static Config createConfigFromFiles(Path root, com.google.common.collect.ImmutableList<Path> configFiles) throws IOException
root
- Project root.configFiles
- the files to load configs from, in order of precedence.RawConfig
.IOException
- on any exceptions during the underlying filesystem operations.public static com.google.common.collect.ImmutableList<Path> getDefaultConfigurationFiles(Path root) throws IOException
root
- The root of the project to searchIOException
public static com.google.common.collect.ImmutableList<Path> getDefaultConfigurationFiles(AbsPath root) throws IOException
getDefaultConfigurationFiles(Path)
.IOException
public static com.google.common.collect.ImmutableList<Path> getRepoConfigurationFiles(Path root)
root
- The root of the project to searchpublic static com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,String>> parseConfigFile(Path file) throws IOException
IOException