[ 
https://issues.apache.org/jira/browse/FELIX-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565389#action_12565389
 ] 

Stuart McCulloch commented on FELIX-477:
----------------------------------------

Hi Carlos,

Here is Peter's rationale behind removing all-numeric qualifiers:

   "Well, personally I think it is weird to use a number for the qualifier 
because it
    is now easily confused. And there is no need for this. It also will give a 
strange
    sorting order because it is sorted as string, not a number. But if people 
really
    feel that it should be allowed then I am willing to change it."

So basically it's because people might see a numeric qualifier and expect it to 
be sorted
numerically (ie. 10>2), whereas actually the qualifier is always sorted as a 
string (10<2).

I can see why you might want to use something like 20080204 as a qualifier, 
because it
would sort correctly due to the fixed date width (but only if you use month 
before day!)
but currently you need to add a non-numeric character to stop Bnd from 
truncating it.

Please let me know if you think it's important for Bnd to retain all-numeric 
qualifiers, so
I can sort out a fix with Peter in time for the 1.2.1 release of the 
maven-bundle-plugin.


> BND: Versions with fourth section all numbers are truncated
> -----------------------------------------------------------
>
>                 Key: FELIX-477
>                 URL: https://issues.apache.org/jira/browse/FELIX-477
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: 1.2.0
>            Reporter: Carlos Sanchez
>            Assignee: Stuart McCulloch
>             Fix For: 1.2.1
>
>
> If i set the pom version or the Bundle-Version directive to 
> 1.1.0-200801301117
> 1.1.0.200801301117
> 1.1.0-20080130
> 1.1.0.20080130
> the version in the manifest is truncated to 1.1.0
> If version is 
> 1.1.0-qualifier
> 1.1.0.qualifier
> then it's not truncated

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to