buildr4osgi accepts version, which Eclipse p2 does not accept

1 view
Skip to first unread message

Niklaus Giger

unread,
Oct 6, 2012, 10:58:49 AM10/6/12
to build...@googlegroups.com
Hi

When building an Eclipse RCP application I stumbled over the problem, that creatiing a P2 repository failed, because buildr4osgi accepted the following kind of version strings, the p2 rejects. Generating a p2 repository chokes with the following error
    # java.lang.IllegalArgumentException: Format"format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])"
This occured with values like
*       2.1.6alpha.20120928
*      2.1.6a.20120928
*       2.1.6.alpha.20120928
*      2.1.7-20120929
accepted values were:
*      2.1.6.a20120928
*       2.1.6.alpha20120928
*       2.1.7.20120929

As I did not want to wait half an hour to see whether my proposed version string is valid, I used the following Java snippet
String msg = new org.osgi.framework.Version("2.1.6.a20120928").toString();

It would be a lot better, if buildr4osgi would reject these illegal values.

Would it be a good idea to use the org.osgi.framework to double check the validity if one uses the jruby platform?

I am still interested into bringing buildr4osgi into a better shape.

I could not use braid to update to buildr 1.4.8, but using a git sub-repository and some changes allowed me to run more than half of the rspecs.
Is this procedure acceptable for you.
Bug tracking is not working neither.
Result is not yet pushed to any public accessible repository.

I will leave for vacation till October 16.

Best regards

Niklaus
Reply all
Reply to author
Forward
0 new messages