You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2009/12/31 07:03:55 UTC

[jira] Closed: (MNG-4105) Allow access to components of a parsed version through properties.

     [ http://jira.codehaus.org/browse/MNG-4105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-4105.
-----------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.3.x)

plugin seems good enough for now. Paul, if you want to work on it, feel free to reopen and implement on trunk with ITs and all that :)

> Allow access to components of a parsed version through properties.
> ------------------------------------------------------------------
>
>                 Key: MNG-4105
>                 URL: http://jira.codehaus.org/browse/MNG-4105
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>            Reporter: Paul Gier
>         Attachments: com.infor.maven.plugin.version-1.0.0-SNAPSHOT-sources.jar, com.infor.maven.plugin.version-1.0.0-SNAPSHOT.jar
>
>
> There are some cases where I would like more fine grained access to the project version number.  It would be convenient if I could access individual parts of a version string using properties.  For example, a project with version "2.0.1-beta-1" I would like to be able to use the following properties or something similar:
> ${project.version} = 2.0.1-beta-1
> ${project.version.major} = 2
> ${project.version.minor} = 0
> ${project.version.incremental} = 1
> ${project.version.qualifier} = beta
> ${project.version.buildNumber} = 1

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