[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-tabpanelfocusedCommentId=145559#action_145559 ] Steve Gilbert commented on MNG-1832: I agree with others who state that the other suggest solutions are adequate. They are not. The timestamp the buildnumber plugin provides is an epoch integer value. The resulting manifest then looks like this: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: gilberts2 Build-Jdk: 1.4.2_15 Implementation-Title: a-code-module Implementation-Version: 1.0-SNAPSHOT Implementation-Vendor-Id: srg Implementation-Build: 65 buildDate: 1219240079087 Note the buildDate value. There is no way to modify that format. The output of the timestamp property does not have the formatting capabilities of the buildNumber property. In fact, here is the code from the plugin that sets the value: String timestamp = String.valueOf( now.getTime() ); project.getProperties().put( timestampPropertyName, timestamp ); Exposing a date-time property within Maven itself that can be used within the jar plugin configuration section would be preferred and should be easy. 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
[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-tabpanelfocusedCommentId=145562#action_145562 ] Steve Gilbert commented on MNG-1832: MNG-2562 states this is fixed in 2.0.10 but there is no explanation how it was fixed. 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
[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-tabpanelfocusedCommentId=145596#action_145596 ] Paul Benedict commented on MNG-1832: See MNG-3718 on how it was implemented. 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
[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-tabpanelfocusedCommentId=131689#action_131689 ] Marco Noto commented on MNG-1832: - How is this issue fixed? In version 2.0.9 isn't added any timestamp built.in propertiy... 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
[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 artifactIdmaven-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
[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_126893 ] Paul Benedict commented on MNG-1832: Unfortunately, the buildnumber plugin works only with SVN. Maven supports a greater breadth of SCM implementations, which I believe should be considered here. 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
[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_124682 ] Arnout Engelen commented on MNG-1832: - buildinfo is at: http://mojo.codehaus.org/buildnumber-maven-plugin/ . I don't quite see how I can use that to add a timestamp to a properties file though. IMHO there should be a proper description showing how this can be done before this issue can be considered 'fixed'. 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
[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_124455 ] Matthijs Wensveen commented on MNG-1832: How is this issue fixed? It doesn't work for me. I suspect this issue is closed because there are alternatives, albeit inferior IMO. In that case the resolution should not be 'fixed' but 'wontfix', otherwise people will expect this to work when it doesn't. 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
[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_100300 ] Paul Sundling commented on MNG-1832: What happened to the buildinfo plugin? It was in the sandbox and now it disappeared. Look at the hoops someone else went through: http://www.gadberry.com/aaron/2007/05/28/inject-build-time-timestamp-property-using-maven/ I notice his caveat that you have to build twice, all for a timestamp. It's a shame the fix won't be included until 2.1. I downloaded head of 2.1 and used mvn.timestamp and didn't seem to filter properly still. 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 Fix For: 2.1.x 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