Class PomModifications.Deletion

java.lang.Object
org.technologybrewery.baton.util.pom.PomModifications.Modification
org.technologybrewery.baton.util.pom.PomModifications.Deletion
All Implemented Interfaces:
Comparable<PomModifications.Modification>
Enclosing class:
PomModifications

public static class PomModifications.Deletion extends PomModifications.Modification
Advances the input reader to the line at the specified end location, writing only the content that is not between the start location and the end location to the output writer. I.e., any content on the first line before the start of the location, and any content on the last line after the end of the location, is written to the output writer.
  • Constructor Details

    • Deletion

      public Deletion(org.apache.maven.model.InputLocation start, org.apache.maven.model.InputLocation end)
      Constructor to delete content between the given start and end parameters.
      Parameters:
      start - the location to begin deleting POM file content (inclusive).
      end - the location to stop deleting POM file content (exclusive).
      See Also:
      • InputLocation
  • Method Details