Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Complexity:Intermediate
-
Patch Submitted:Yes
-
Number of attachments :
Description
Current timestamp (time or date) is often used while filtering resources or creating manifest in ant builds. There is no equivalent in maven.
It would be very helpful in filling some properties files to get built-time at the artifact runtime to identify the version. It would be also helpful to have property with the current checkout revision (ie. ${scm.currentRevision}). Then I could use in the resources.properties:
app.builtOn=${timestamp}
app.scmVersion=${scm.currentRevision}
I can use $Revision$ or $LastChangedRevision$ because I would have to remember to modify and commit that properties file before building.