You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jorg Heymans (JIRA)" <ji...@codehaus.org> on 2008/03/11 14:01:46 UTC

[jira] Commented: (MNG-1832) built-in property containing current timestamp

    [ http://jira.codehaus.org/browse/MNG-1832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126846 ] 

Jorg Heymans commented on MNG-1832:
-----------------------------------

the buildnumber plugin exposes by default 2 properties: ${buildNumber} and ${timestamp}. You can use these anywere in the pom, for example pass them as a parameter to a custom mojo that writes them to your custom property file if you'ld like. 

Alternatively just add them to the manifest with something like this:

      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestEntries>
              <svnrevision>${buildNumber}</svnrevision>
              <buildDate>${timestamp}</buildDate>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>

> built-in property containing current timestamp
> ----------------------------------------------
>
>                 Key: MNG-1832
>                 URL: http://jira.codehaus.org/browse/MNG-1832
>             Project: Maven 2
>          Issue Type: New Feature
>    Affects Versions: 2.0.1
>            Reporter: Michal Stochmialek
>         Attachments: maven-archiver_pomDelete.patch, maven-core_defaultExpressions.patch
>
>
> Current timestamp (time or date) is often used while filtering resources or creating manifest in ant builds. There is no equivalent in maven.

-- 
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