Need a way to format the revision number gathered from SCM.
-----------------------------------------------------------

                 Key: MBUILDNUM-74
                 URL: https://jira.codehaus.org/browse/MBUILDNUM-74
             Project: Mojo Build Number Maven Plugin
          Issue Type: Improvement
    Affects Versions: buildnumber-maven-plugin-1.0
            Reporter: Josh Berry


The full SHA has received from GIT is overkill for build identification 
purposes.   I tried toying with the <format> and <items> keys, though this 
looks like it actually disables SCM integration.  (Something that is not 
documented well at all.)  Further, because this is using a MessageFormat and 
not the more flexible Formatter syntax, I'm not sure this could have worked 
anyway.

I think the only steps necessary to clean this up a lot, is to make another 
special case in <items> for "scmVersion" that would be the latest version 
reported by the SCM provider.  Then, make it so that instead of MessageFormat, 
you use a string readable by java.util.Formatter.

I can submit a patch that does this, if you'd be open for including this change.

--
This message is automatically generated by JIRA.
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