Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] [prov] Some provisioning changes released


I'll investigate this. The change I made should only have effect if you manually added filter elements to the features before generating the metadata. However, it's possible I messed something up or there's a collision between my changes and Pascal's. I'll follow up here with findings.



David R Stevenson <dstevens@xxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

06/14/2007 08:41 PM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
cc
equinox-dev@xxxxxxxxxxx, equinox-dev-bounces@xxxxxxxxxxx
Subject
Re: [equinox-dev] [prov] Some provisioning changes released






Hmm. I picked up your changes and Pascal's. I regenerated the metadata. When I attempt to install (an SDK) I get  a number of InvalidSyntaxExceptions in FilterImpl$Parser:


FilterImpl$Parser.parse_attr() line: 1627        


                       
if (length == 0) {
                               
throw new InvalidSyntaxException(NLS.bind(Msg.FILTER_MISSING_ATTR, String.valueOf(pos)), filterstring);
                       }


when,  for example, the filter string is


  (&((&(osgi.os=win32)(osgi.ws=win32)(osgi.arch=x86))) ((version>=3.3.0.v3339)))


and the message is


       
Missing attr at character 3

and the iu being processed is


       
org.eclipse.rcp.featureIU 3.3.0.v20070405a-8w8eDpEbsN3KkG_gP8JZLGb

similar for platform.featureIU with filter string


       (&((&(osgi.ws=win32))) ((version>=3.2.100.I20070319-0010)))


The problem appears to be with the handling of the compound conjunction. A version filter only or an _expression_ like


       (&(osgi.os=hpux)(osgi.arch=ia64_32))


parses without exception.


Bugzilla reveals 3 bugs matching FilterImpl, none for this behavior. Is it a bug or is this type of _expression_ not supported.


       - Dave



John Arthorne <John_Arthorne@xxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

06/14/2007 01:45 PM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
equinox-dev@xxxxxxxxxxx
cc
Subject
[equinox-dev] [prov] Some provisioning changes released








I released a couple of small to the provisioning incubator:


- New local metadata repository. If you create a metadata repository pointing to a local file system directory, it will traverse the directory in search of "content.xml" files, and aggregate them together. This makes it easier to cobble together metadata from various places without creating multiple metadata repositories


- To allow for experimenting with groups that define filters, I added some bits to the feature parser so that features can define extra filters on their imports and includes. If you run a feature with filters through the metadata generatory, they get turned into filters on the RequiredCapability. This was simpler than hand-crafting filter-enabled groups manually.
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Back to the top