public class ParserUtils extends Object
Constructor and Description |
---|
ParserUtils() |
Modifier and Type | Method and Description |
---|---|
static <D> Map<String,D> |
parsePluginOutput(java.util.stream.Stream<String> lines,
Pattern executionLinePattern,
java.util.function.Function<Iterator<String>,D> blockParser)
Iterates over the given lines, identifying plugin execution blocks with the given pattern and
parses the plugin output with the given parser.
|
public static <D> Map<String,D> parsePluginOutput(java.util.stream.Stream<String> lines, Pattern executionLinePattern, java.util.function.Function<Iterator<String>,D> blockParser)
This method assumes that the given pattern matches at most once for each module.
The given pattern must include a module
group that captures the module that the
plugin runs on (without the scala suffix!).
D
- block parser outputlines
- maven output linesexecutionLinePattern
- pattern that matches plugin executionsblockParser
- parser for the plugin blockCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.