Full name:
io.github.floverfelt:find-and-replace-maven-plugin:1.0-SNAPSHOT:find-and-replace
Description:
Attributes:
| Name | Type | Since | Description |
|---|---|---|---|
<findRegex> |
String |
- |
The regex string to find. User property is: findRegex. |
<replaceValue> |
String |
- |
The value to replace the matching findRegex with. User property is: replaceValue. |
<replacementType> |
String |
- |
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 User property is: replacementType. |
| Name | Type | Since | Description |
|---|---|---|---|
<baseDir> |
String |
- |
The base directory from which to perform the find and replace. This
is relative to the location of the pom. Default value is: ${basedir}.User property is: baseDir. |
<encoding> |
String |
- |
Specify file encoding during file-contents replacement
Default set to Charset.defaultCharset(); User property is: encoding. |
<exclusions> |
String |
- |
Regex filenames/directory-names to exclude. User property is: exclusions. |
<fileMask> |
String |
- |
A CSV of the file types to search in. For example for the value:
.xml Only files ending with .xml will be renamed.
For the value: .xml,.properties Only files ending with .xml,.properties will be renamed. Ignored for directories. User property is: fileMask. |
<recursive> |
boolean |
- |
Whether the find and replace is recursive from the baseDir. Default value is: false.User property is: recursive. |
<skip> |
boolean |
- |
Skip execution of the plugin. Default value is: false.User property is: skip. |
java.lang.StringNobaseDir${basedir}Default set to Charset.defaultCharset();
java.lang.StringNoencodingjava.lang.StringNoexclusionsFor the value: .xml,.properties Only files ending with .xml,.properties will be renamed.
Ignored for directories.
java.lang.StringNofileMaskjava.lang.StringYesfindRegexbooleanNorecursivefalsejava.lang.StringYesreplaceValuefile-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
java.lang.StringYesreplacementTypebooleanNoskipfalse