You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Torben S. Giesselmann" <ts...@foogoo.net> on 2009/01/29 19:14:35 UTC
MNG-1957: profile activation, version range syntax
Heya,
I just submitted a patch which allows using the artifact version range
syntax for activating profiles by JDK version. The implementation
remains compatible to the way it's currently done (prefix matching), but
now also allows using the negation operator "!" in conjunction with
version ranges.
I was wondering: why isn't the negation operator part of the version
range syntax anyways?
Cheers,
- Torben
--
Torben S. Giesselmann
tsg-swdev@foogoo.net
A clear conscience is usually the sign of a bad memory.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: MNG-1957: profile activation, version range syntax
Posted by "Torben S. Giesselmann" <ts...@foogoo.net>.
>> I was wondering: why isn't the negation operator part of the version
>> range syntax anyways?
>
> It's just a matter of keeping the syntax simple - it doesn't add
> functionality since you can express the same with alternate range
> boundries.
Agreed. And there's something else: what would an expression like
!(1.0,1.1) mean? Use ANY version except those between 1.0 and 1.1? I
wouldn't like that as an artifact dependency ... ;-)
--
Torben S. Giesselmann
tsg-swdev@foogoo.net
A clear conscience is usually the sign of a bad memory.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: MNG-1957: profile activation, version range syntax
Posted by Brett Porter <br...@apache.org>.
On 30/01/2009, at 5:14 AM, Torben S. Giesselmann wrote:
> Heya,
>
> I just submitted a patch which allows using the artifact version
> range syntax for activating profiles by JDK version. The
> implementation remains compatible to the way it's currently done
> (prefix matching), but now also allows using the negation operator
> "!" in conjunction with version ranges.
Thanks for the patch! I think that's a reasonable addition since the
field already supports ! for non-range values.
>
>
> I was wondering: why isn't the negation operator part of the version
> range syntax anyways?
It's just a matter of keeping the syntax simple - it doesn't add
functionality since you can express the same with alternate range
boundries.
Cheers,
Brett
--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org