public class EventReportingProjectBuildFileParser extends ForwardingProjectBuildFileParserDecorator
ProjectBuildFileParser that is responsible for reporting parse lifecycle
events like start and finish.
This decouples status reporting functionality so that it can be used with different underlying
ProjectBuildFileParsers.
delegate| Modifier and Type | Method and Description |
|---|---|
void |
close() |
BuildFileManifest |
getManifest(Path buildFile)
Collect all information from a particular, along with metadata about the information, for
example which other files were also parsed.
|
static EventReportingProjectBuildFileParser |
of(ProjectBuildFileParser delegate,
BuckEventBus eventBus)
Static factory method for producing instances of
EventReportingProjectBuildFileParser. |
getIncludedFiles, globResultsMatchCurrentState, reportProfilepublic BuildFileManifest getManifest(Path buildFile) throws BuildFileParseException, InterruptedException, IOException
FileParsergetManifest in interface FileParser<BuildFileManifest>getManifest in class ForwardingProjectBuildFileParserDecoratorbuildFile - should be an absolute path to a file. Must have rootPath as its prefix.BuildFileParseExceptionInterruptedExceptionIOExceptionpublic void close()
throws BuildFileParseException,
InterruptedException,
IOException
close in interface FileParser<BuildFileManifest>close in interface AutoCloseableclose in class ForwardingProjectBuildFileParserDecoratorBuildFileParseExceptionInterruptedExceptionIOExceptionpublic static EventReportingProjectBuildFileParser of(ProjectBuildFileParser delegate, BuckEventBus eventBus)
EventReportingProjectBuildFileParser.