[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] How to add a new feature to an existing repository?

Hello Brian,

 

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.

 

Best regards,

Shenol Yousouf

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.

 

Brian.

 

On 15-Feb-2011, at 11:02 AM, Samuel Wu wrote:



Hi Brian,
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?

Best Regards

Samuel Wu


<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

<ecblank.gif>
From:

<ecblank.gif>
Brian de Alwis <briandealwis@xxxxxxxxx>

<ecblank.gif>
To:

<ecblank.gif>
P2 developer discussions <p2-dev@xxxxxxxxxxx>

<ecblank.gif>
Date:

<ecblank.gif>
02/15/2011 10:54 AM

<ecblank.gif>
Subject:

<ecblank.gif>
Re: [p2-dev] How to add a new feature to an existing repository?

<ecblank.gif>
Sent by:

<ecblank.gif>
p2-dev-bounces@xxxxxxxxxxx





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.

Brian.


[attachment "smime.p7s" deleted by Samuel Wu/Toronto/IBM] _______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev

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

 

 

--

Rescue your task list with Kizby!  Free 30 day trial with no obligations.

Visit kizby.com for details.