You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Davide Giannella <da...@apache.org> on 2015/02/11 16:55:48 UTC
baseline plugin (Re: [VOTE] Release Apache Jackrabbit Oak 1.1.6)
On 11/02/2015 12:19, Robert Munteanu wrote:
> We could probably raise an enhancement request which allows
> restricting the versions considered, such as 'no qualifiers', or a
> regexp-based validation or ... Robert
We could enhance the `comparisonVersion` to actually be a regex. Which
in our specific use case could be then translated into something like:
'/^\d+\.\d+\.\d+$/'.
if in the comparisonVersion you won't surround the value with '/' it
means no regex.
Cheers
Davide
Re: baseline plugin (Re: [VOTE] Release Apache Jackrabbit Oak 1.1.6)
Posted by Robert Munteanu <ro...@lmn.ro>.
On Wed, Feb 11, 2015 at 5:55 PM, Davide Giannella <da...@apache.org> wrote:
> On 11/02/2015 12:19, Robert Munteanu wrote:
>> We could probably raise an enhancement request which allows
>> restricting the versions considered, such as 'no qualifiers', or a
>> regexp-based validation or ... Robert
> We could enhance the `comparisonVersion` to actually be a regex. Which
> in our specific use case could be then translated into something like:
> '/^\d+\.\d+\.\d+$/'.
>
> if in the comparisonVersion you won't surround the value with '/' it
> means no regex.
With a patch, anything is possible :-)
But bear in mind that right now this is a version range [1] so regexps
would not work out of the box.
Robert
[1]: https://github.com/apache/felix/blob/3e2ff037e3c7542b06eca437edce0643e1f1b76d/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java#L442-L450
--
Sent from my (old) computer