Class FindAndReplaceMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
software.xdev.far.BaseMojo<FindAndReplaceExecData>
software.xdev.far.find_and_replace.FindAndReplaceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Deprecated @Mojo(name="find-and-replace", defaultPhase=NONE, threadSafe=true) public class FindAndReplaceMojo extends BaseMojo<FindAndReplaceExecData>
Deprecated.
Only exists for compatibility reasons
  • Field Details

    • replacementType

      @Parameter(property="replacementType", required=true) protected String replacementType
      Deprecated.
      A CSV of what type of replacement(s) being done. Valid values are: file-contents filenames directory-names

      file-contents will replace the find regex within a file. filenames will replace the find regex within a file's name. directory-names will replace the find regex within a directory's name

      To run the find and replace for multiple types, pass them as a CSV: file-contents,filenames,directory-names

    • encoding

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

      Default set to Charset.defaultCharset();

  • Constructor Details

    • FindAndReplaceMojo

      public FindAndReplaceMojo()
      Deprecated.
  • Method Details