Package software.xdev.far.filecontents
Class FileContentsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
- 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 Summary
FieldsModifier and TypeFieldDescriptionprotected StringSpecify file encoding during file-contents replacementprotected booleanSpecify to match line based or otherwise match the whole document.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 Patternprotected FileContentsExecDataenrichData(ExecData data) voidsetEncoding(String encoding) voidsetReplaceLineBased(boolean replaceLineBased) Methods inherited from class software.xdev.far.BaseMojo
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
-
encoding
Specify file encoding during file-contents replacementDefault set to Charset.defaultCharset();
-
replaceLineBased
@Parameter(property="replaceLineBased", defaultValue="true") protected boolean replaceLineBasedSpecify to match line based or otherwise match the whole document.When this value is set to
falsemore memory may be required as the whole file is processed at once.
-
-
Constructor Details
-
FileContentsMojo
public FileContentsMojo()
-
-
Method Details
-
enrichData
- Specified by:
enrichDatain classBaseMojo<FileContentsExecData>
-
compileFindRegex
- Overrides:
compileFindRegexin classBaseMojo<FileContentsExecData>
-
setEncoding
-
setReplaceLineBased
public void setReplaceLineBased(boolean replaceLineBased)
-