I do not find the publishers’ behavior as that odd. After all, each publisher is specialized to perform specific actions and has to be instructed what to do in some way. Hence, publishers need some input which most often happens to be in the form of xml files (*.product, category.xml, etc.).
Features and bundles publisher, specifically, do not use any descriptor files – it starts with exported features and bundles and can generate artifact and metadata repositories for them from scratch, as one would expect.
Just voicing my opinion, although this discussion is a little bit off the topic of the mail thread.
SAP Labs Bulgaria
From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Brian de Alwis
Sent: Tuesday, February 15, 2011 6:42 PM
To: P2 developer discussions
Subject: Re: [p2-dev] How to add a new feature to an existing repository?
In p2, "publish" actually means "import": the publishers take information in some format (usually xml) and then convert it and add it to a p2 repository. I found this use of "publishing" to be the opposite of what I first expected.
So to add a category description, you use the category publisher. To add a product, you use the product publisher. To add a bundle or feature, you use the feature and plugin publisher.
On 15-Feb-2011, at 11:02 AM, Samuel Wu wrote:
I've created a category file but don't know how to pass it to the p2.mirror ant task. From the current syntax documented, it doesn't seem to take a category file. Is there a hidden parameter that I can set?
<graycol.gif>Brian de Alwis ---02/15/2011 10:54:08 AM---On 15-Feb-2011, at 10:43 AM, Samuel Wu wrote: > Is there a way to set the category name when calling
Brian de Alwis <briandealwis@xxxxxxxxx>
P2 developer discussions <p2-dev@xxxxxxxxxxx>
02/15/2011 10:54 AM
Re: [p2-dev] How to add a new feature to an existing repository?
On 15-Feb-2011, at 10:43 AM, Samuel Wu wrote:
> Is there a way to set the category name when calling the ant task p2.mirror?
I have never tried this, but I would assume it's the category id from the category.xml file. You must set the id before publishing the category.xml file. You should be able to set an id through the category.xml editor.
[attachment "smime.p7s" deleted by Samuel Wu/Toronto/IBM] _______________________________________________
p2-dev mailing list
p2-dev mailing list
Rescue your task list with Kizby! Free 30 day trial with no obligations.