Re: [DISCUSS] Semantics of version range in JDK profile activator

2010-01-03 Thread Brian Fox
> In detail, I suggest to have Maven core adopt the approach taken by the > Enforcer Plugin [0] regarding normalization of the version with the > deviation to consider only the first three numeric parts (assume missing > parts to be 0) for the comparison. This should make profile activation more >

Re: [DISCUSS] Semantics of version range in JDK profile activator

2010-01-02 Thread Paul Benedict
Although Sun's JDK versioning is a non-standard format, I think it's obvious Sun isn't going to change it soon. (I've been watching the JSR-294 debate! Yup, they are not changing.) I am +1 on Maven supporting parsing this special format to make the patch releases (_XX) naturally comparable with the

Re: [DISCUSS] Semantics of version range in JDK profile activator

2010-01-02 Thread Jason van Zyl
On 2010-01-02, at 10:00 AM, Benjamin Bentmann wrote: > Benjamin Bentmann wrote: > >> >>test >> >> (1.4,1.5] >> >> >> Now, when do you think does this profile get activated in case the current >> Java version (as given by ${java.version}) happens to be >> a) 1.4.0_07 >> b)

Re: [DISCUSS] Semantics of version range in JDK profile activator

2010-01-02 Thread Arnaud HERITIER
It is many more logical. But we'll have to clearly document it because many users will wrongly suppose they avoid all 1.4 versions with (1.4 Arnaud On Saturday, January 2, 2010, Benjamin Bentmann wrote: > Benjamin Bentmann wrote: > > >   >    test >     >       (1.4,1.5] >     >   > > Now

Re: [DISCUSS] Semantics of version range in JDK profile activator

2010-01-02 Thread Benjamin Bentmann
Benjamin Bentmann wrote: test (1.4,1.5] Now, when do you think does this profile get activated in case the current Java version (as given by ${java.version}) happens to be a) 1.4.0_07 b) 1.4.0_14 c) 1.4.2_07 d) 1.5.0_07 e) 1.5.0_14 f) 1.5.1_14 For better illustr

[DISCUSS] Semantics of version range in JDK profile activator

2010-01-02 Thread Benjamin Bentmann
Hi, as per MNG-1957, Maven introduced support to activate profiles based on a version range for the JDK version: test (1.4,1.5] Now, when do you think does this profile get activated in case the current Java version (as given by ${java.version}) happens to be a)