public class BuckConfigWriter extends Object
BuckConfig to a file for a specific invocation| Modifier and Type | Method and Description |
|---|---|
static void |
writeConfig(Path rootPath,
InvocationInfo info,
BuckConfig config)
Writes the configuration out to a standard location as json for a specific command
|
public static void writeConfig(Path rootPath, InvocationInfo info, BuckConfig config) throws IOException
Currently this is of the form:
{
"settings": {
"section": {
"key": "value"
"key2": "value2"
},
"other_section": {
"key3": "value3",
"key4": "true"
}
}
In the future, the source of each setting will be visible with a structure like this:
{
"settings": {
"section": {
"key": "value"
"key2": "value2"
},
"other_section": {
"key3": "value3",
"key4": "true"
},
"sources": {
"$path_to_config_file": {
"section": {
"key": "value"
"key2": "value2"
}
}
}
}
rootPath - The root of the project that contains buck-outinfo - The invocation info. Used to find the log directories to write intoconfig - The configuration to write to diskIOException - The file could not be written to