You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/06/17 09:56:27 UTC

[jira] Commented: (MNG-2562) expose current time as a property for POM interpolation

    [ http://jira.codehaus.org/browse/MNG-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138813#action_138813 ] 

Benjamin Bentmann commented on MNG-2562:
----------------------------------------

bq. I'm not sure of the best way to make the format of the time configurable
I like the idea proposed by Sharmarke Aden in MNG-1832: ${mvn.timestamp.DATE_FORMAT}, i.e. simply appending the desired format to the propery base name. This allows users to easily choose the format for their respective use case.

The only thing that might be missing is the locale. Could perhaps be integrated like this: {{${mvn.tstamp-lang,country,variant.DATE_FORMAT}}} which should be straightforward to parse.

> expose current time as a property for POM interpolation
> -------------------------------------------------------
>
>                 Key: MNG-2562
>                 URL: http://jira.codehaus.org/browse/MNG-2562
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: Inheritance and Interpolation
>            Reporter: Brett Porter
>            Assignee: John Casey
>             Fix For: 2.0.10
>
>
> it is useful to have the current time, for example to write out a manifest entry for the build time or to filter into another file.
> I'm not sure of the best way to make the format of the time configurable - perhaps another POM element/property.
> See the related issue for a current example of how this can be done, but it would be nice to have a built-in.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira