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 Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.Specify file encoding during file-contents replacementprotected StringDeprecated.A CSV of what type of replacement(s) being done.Fields inherited from class software.xdev.far.BaseMojo
baseDir, exclusions, executeInternal, fileMask, findRegex, project, recursive, replaceAll, replaceValue, skipFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FindAndReplaceExecDataenrichData(ExecData data) Deprecated.voidsetEncoding(String encoding) Deprecated.Methods inherited from class software.xdev.far.BaseMojo
compileFindRegex, createDefaultData, execute, setBaseDir, setExclusions, setFileMask, setFindRegex, setProject, setRecursive, setReplaceAll, setReplaceValue, setSkipMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
replacementType
Deprecated.A CSV of what type of replacement(s) being done. Valid values are: file-contents filenames directory-namesfile-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
Deprecated.Specify file encoding during file-contents replacementDefault set to Charset.defaultCharset();
-
-
Constructor Details
-
FindAndReplaceMojo
public FindAndReplaceMojo()Deprecated.
-
-
Method Details
-
enrichData
Deprecated.- Specified by:
enrichDatain classBaseMojo<FindAndReplaceExecData>
-
setEncoding
Deprecated.
-