Class AbstractMavenLogParser

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AntJavacParser, JavacParser, JavaDocParser, MavenConsoleParser

public abstract class AbstractMavenLogParser extends LookaheadParser
A base class for parsers that will work on subsections of Maven build logs. These logs can be divided into sections that are created by specific maven plugins or goals.
Author:
Jagruti Tiwari
See Also:
  • Constructor Details

    • AbstractMavenLogParser

      protected AbstractMavenLogParser(String pattern)
      Creates a new instance of AbstractMavenLogParser.
      Parameters:
      pattern - pattern of compiler warnings.
  • Method Details

    • preprocessLine

      protected void preprocessLine(String line)
      Description copied from class: LookaheadParser
      Preprocesses the specified line. This method is called before the line is checked for a match. Subclasses may override this empty default implementation.
      Overrides:
      preprocessLine in class LookaheadParser
      Parameters:
      line - the line to preprocess
    • getModule

      protected String getModule()
    • getGoal

      protected String getGoal()
    • hasGoals

      protected boolean hasGoals(String... goals)