@Mojo(name="regex-property",
defaultPhase=VALIDATE,
threadSafe=true)
public class RegexPropertyMojo
extends AbstractRegexPropertyMojo
| Modifier and Type | Field and Description |
|---|---|
private boolean |
failIfNoMatch
Whether to fail if no match is found.
|
private java.lang.String |
name
The property to set.
|
private java.lang.String |
regex
The regex to replace.
|
private java.lang.String |
replacement
The replacement.
|
private java.lang.String |
value
The pre-transformation value.
|
| Constructor and Description |
|---|
RegexPropertyMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
executedefineProperty, getProject@Parameter(required=true) private java.lang.String name
@Parameter(required=true) private java.lang.String value
@Parameter(required=true) private java.lang.String regex
@Parameter(defaultValue="") private java.lang.String replacement
@Parameter(defaultValue="true") private boolean failIfNoMatch