Class FileContentsMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
software.xdev.far.BaseMojo<FileContentsExecData>
software.xdev.far.filecontents.FileContentsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="file-contents", defaultPhase=NONE, threadSafe=true) public class FileContentsMojo extends BaseMojo<FileContentsExecData>
  • Field Details

    • encoding

      @Parameter(property="encoding") protected String encoding
      Specify file encoding during file-contents replacement

      Default set to Charset.defaultCharset();

    • replaceLineBased

      @Parameter(property="replaceLineBased", defaultValue="true") protected boolean replaceLineBased
      Specify to match line based or otherwise match the whole document.

      When this value is set to false more memory may be required as the whole file is processed at once.

  • Constructor Details

    • FileContentsMojo

      public FileContentsMojo()
  • Method Details