[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Creating an aggregated p2 mirror with modified categories

Hi,

Out of curiosity, I've just looked up how category.xml is parsed by p2 itself, and it seems that the only time it cares about the url attribute is when it loads an update site [1], and even then it can build the url itself from the id and the version. When p2 parses category.xml file, it doesn't read or set the url at all [2].

[1] http://grepcode.com/file/repository.grepcode.com/java/eclipse.org/3.7.2/org.eclipse.equinox.p2/updatesite/1.0.300/org/eclipse/equinox/internal/p2/updatesite/DefaultSiteParser.java#DefaultSiteParser.processFeature%28org.xml.sax.Attributes%29
[2] http://grepcode.com/file/repository.grepcode.com/java/eclipse.org/3.7.2/org.eclipse.equinox.p2/updatesite/1.0.300/org/eclipse/equinox/internal/p2/updatesite/CategoryParser.java#CategoryParser.processFeature%28org.xml.sax.Attributes%29

Kind regards,
Mikhail Kalkov

Purple Scout AB
Software Developer


From: "Mickael Istria" <mistria@xxxxxxxxxx>
To: tycho-user@xxxxxxxxxxx
Sent: Tuesday, September 25, 2012 7:25:27 PM
Subject: Re: [tycho-user] Creating an aggregated p2 mirror with modified        categories

On 09/25/2012 05:20 PM, Robert GrÃndler wrote:
Hi Tobias,

i've tried the following version scheme, but i get:

   <feature url="" id="org.pex.feature" version="0.0.0">

Missing requirement: mirror 0.0.1 requires 'org.pex.feature.feature.group 0.0.0' but it could not be found


What should i use for the url attribute when specifying 0.0.0 as version?
You can simply ignore the url parameter, it's not even parsed ;) http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-metadata-model/src/main/java/org/eclipse/tycho/model/Category.java
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

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