public class TargetCountVerificationParserDecorator extends ForwardingProjectBuildFileParserDecorator
delegate
Constructor and Description |
---|
TargetCountVerificationParserDecorator(ProjectBuildFileParser delegate,
int targetWarnCount,
BuckEventBus eventBus) |
Modifier and Type | Method and Description |
---|---|
BuildFileManifest |
getManifest(Path buildFile)
Collect all information from a particular, along with metadata about the information, for
example which other files were also parsed.
|
close, getIncludedFiles, globResultsMatchCurrentState, reportProfile
public TargetCountVerificationParserDecorator(ProjectBuildFileParser delegate, int targetWarnCount, BuckEventBus eventBus)
delegate
- the aggregated parser.targetWarnCount
- the count of target which, if exceeded will log a warning.eventBus
- The event buss where to post warning events for handling.public BuildFileManifest getManifest(Path buildFile) throws BuildFileParseException, InterruptedException, IOException
FileParser
getManifest
in interface FileParser<BuildFileManifest>
getManifest
in class ForwardingProjectBuildFileParserDecorator
buildFile
- should be an absolute path to a file. Must have rootPath as its prefix.BuildFileParseException
InterruptedException
IOException