Class PomModifications.Final

java.lang.Object
org.technologybrewery.baton.util.pom.PomModifications.Final
Enclosing class:
PomModifications

public static class PomModifications.Final extends Object
A class to iteratively apply a series of POM file modifications.
See Also:
  • Method Details

    • appliesTo

      public boolean appliesTo(int lineNumber)
    • apply

      public int apply(BufferedReader in, Writer out, String line) throws IOException
      Applies the next modification to the input reader, writing the result to the output writer.
      Parameters:
      in - the input reader.
      out - the output writer.
      line - the current line of the input reader.
      Returns:
      the line number of `in` after the modification has been applied (changes iff the input reader was advanced).
      Throws:
      IOException - if an I/O error occurs.