public class BuckFixSpecWriter extends Object
BuckFixSpec to the log directory| Modifier and Type | Method and Description |
|---|---|
static void |
writeSpec(Path fixSpecPath,
BuckFixSpec spec)
Writes the json representation of the fix spec to be consumed by the fix script, it's usually
information found in logs too but in a much easier format for the script to consume, plus
command data that might be captured only in runtime.
|
static Path |
writeSpecToLogDir(Path rootPath,
InvocationInfo info,
BuckFixSpec spec)
Writes the json representation of the fix spec to the logs directory, derived from the rootPath
and the InvocationInfo
|
public static Path writeSpecToLogDir(Path rootPath, InvocationInfo info, BuckFixSpec spec) throws IOException
rootPath - The root of the project that contains buck-outinfo - The invocation info. Used to find the log directories to write intospec - the spec to write to diskIOException - The file could not be written topublic static void writeSpec(Path fixSpecPath, BuckFixSpec spec) throws IOException
fixSpecPath - a path to the file where the spec is to be writtenspec - the spec to write to diskIOException