Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
The goal should provide "now" as formatted string in a property. The goal should have 4 parameters:
- timeZone: A time zone string (like UTC or Europe/Berlin) used to transform the local time with TZ.getDefault() as default
- format: A string passed to a SimpleDateFormat using something like "yyyy-MM-dd'T'HH:mm:ss.SSSZ" as default
- locale: The locale used for the formatted string using Locale.ENGLISH as default
- currentTimeProperty: The name of the property in which to store the result
Most people don't know this, but since maven-2.1.0 there's a special/magic variable which does almost the same thing, namely maven.build.timestamp :
More details can be found here:
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Available_Variables