I mean: run that code and see what the returned string is. You can use the toFilterString() method on VersionRange to compute the proper filter string for any version range. --
BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance hargr...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From: Raymond Auge <raymond.a...@liferay.com> To: OSGi Developer Mail List <osgi-dev@mail.osgi.org> Date: 2015/01/16 20:34 Subject: Re: [osgi-dev] filter syntax for version range with exclusive upper bound Sent by: osgi-dev-boun...@mail.osgi.org I should have clarified in a Require-Capability header filter syntax. - Ray On Fri, Jan 16, 2015 at 8:31 PM, BJ Hargrave <hargr...@us.ibm.com> wrote: new VersionRange("[1.0,2.0)").toFilterString() -- BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance hargr...@us.ibm.com office: +1 386 848 1781 mobile: +1 386 848 3788 From: Raymond Auge <raymond.a...@liferay.com> To: OSGi Developer Mail List <osgi-dev@mail.osgi.org> Date: 2015/01/16 20:16 Subject: [osgi-dev] filter syntax for version range with exclusive upper bound Sent by: osgi-dev-boun...@mail.osgi.org Is this the best way to express this: (&(version>=1.0)(version<=2.0)(!(version=2.0))) There does not appear to be a only a < in the filter syntax. -- Raymond Augé (@rotty3000) Senior Software Architect Liferay, Inc. (@Liferay) Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance) _______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev -- Raymond Augé (@rotty3000) Senior Software Architect Liferay, Inc. (@Liferay) Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance) _______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev