[ 
http://jira.codehaus.org/browse/MOJO-988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133544#action_133544
 ] 

werner mueller commented on MOJO-988:
-------------------------------------

hallo

i would vote for some paramter = value syntax. so the timestamp, buildNumber 
and revision could be assigned to a paramater using a (optional?) format 
pattern. currently it is not obvious you loose the revision number when using 
the format options.

something like:
<configuration>
  <doCheck>false</doCheck>
  <doUpdate>false</doUpdate>
  <values>
    <value>
      <name>filterParamName</revision> <!-- ${filterParamName}  -->
      <format>got r{0} at {1,date,yyyy-MM-dd-HH:mm:ss} to create build 
{2}</format>
      <items>
        <item>scmVersion</item>  <!-- from SCM -->
        <item>timestamp</item>  <!-- now -->
        <item>buildNumber</item>  <!-- from build number properties file -->
      </items>
    </value>
  </values>
</configuration>

the current version treats timestamp and buidNumber as special cases. the 
'scmVersion' (in case of subversion 'revision') is some sort of missing in the 
current beta 1

not sure if similar options are available in the maven resources plugin

> buildnumber-plugin: when using format, buildNumber property gets overwritten
> ----------------------------------------------------------------------------
>
>                 Key: MOJO-988
>                 URL: http://jira.codehaus.org/browse/MOJO-988
>             Project: Mojo
>          Issue Type: Bug
>          Components: buildnumber
>            Reporter: Dirk Olmes
>            Priority: Minor
>         Attachments: BulidMojo-MOJO-960-r5675.patch
>
>
> I'm using the buildnumber plugin to retrieve the svn version and put it into 
> the MANIFEST of the generated jar.
> I'd like to put a user presentable date in the MANIFEST as well but the 
> buildnumber plugin does not offer anything to format the timestamp only. I 
> have played around using the {{format}} element in conjunction with {{items}} 
> but looking at the code of BuildMojo I see that it's always the revision ivar 
> that's overwritten.

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to