[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Query a Metadata repository for OS specific IUs and wildcards on queries

Hi Pablo,

If I understand you correctly, you are not interested in evaluating the filter as such. You just want to know if a filter for osgi.os is present?

Regarding wildcards. The _expression_:

 x.id == *.string1*

is the same as Java:

 x.id.equals("*.string1.*");

If you want a wildcard match, then try:

 x.id ~= /*.string.*/

which is the same as Java:

 SimplePattern.compile("*.string1.*").isMatch(x.id)

On 05/28/2010 08:28 PM, Pablo Leite wrote:
Hi,

     I need to query a metadata repository that contains InstallableUnits with osgi.os filter configured.
     I tried 'select(x|x.filter ~= filter($0)) ' ,without success. Can someone give me an advice on how to query using filter?

     I also tried to use wildcards on queries, in order to query for all IUs with a given string on its ID, like "select(x | x.id == *.string1.*)". The query didn't work. Is there a way to use wildcards on queries?

Thanks.
--
Pablo
_______________________________________________ p2-dev mailing list p2-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/p2-dev