@Mojo(name="timestamp-property", defaultPhase=VALIDATE, threadSafe=true) public class TimestampPropertyMojo extends AbstractDefinePropertyMojo
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
locale
The locale to use, for example
en,US . |
private java.lang.String |
name
The property to set.
|
private int |
offset
An offset to apply to the current time.
|
private java.lang.String |
pattern
The date/time pattern to be used.
|
private java.lang.String |
timeZone
The timezone to use for displaying time.
|
private java.lang.String |
unit
The unit of the offset to be applied to the current time.
|
Constructor and Description |
---|
TimestampPropertyMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
defineProperty, getProject
@Parameter(required=true) private java.lang.String name
@Parameter private java.lang.String pattern
@Parameter(defaultValue="GMT") private java.lang.String timeZone
@Parameter(defaultValue="0") private int offset
@Parameter(defaultValue="second") private java.lang.String unit
@Parameter private java.lang.String locale
en,US
.