Skip to main content

[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?

Hi Brian,
I'm running a headless build and don't want to manually update the content.xml/jar each time I run the build. Is there a way to set the category name when calling the ant task p2.mirror? Thanks.

Best Regards

Samuel Wu


Inactive hide details for Brian de Alwis ---02/10/2011 11:30:53 AM---On 10-Feb-2011, at 10:44 AM, Samuel Wu wrote: >Brian de Alwis ---02/10/2011 11:30:53 AM---On 10-Feb-2011, at 10:44 AM, Samuel Wu wrote: >


From:

Brian de Alwis <briandealwis@xxxxxxxxx>

To:

P2 developer discussions <p2-dev@xxxxxxxxxxx>

Date:

02/10/2011 11:30 AM

Subject:

Re: [p2-dev] How to add a new feature to an existing repository?

Sent by:

p2-dev-bounces@xxxxxxxxxxx




On 10-Feb-2011, at 10:44 AM, Samuel Wu wrote:
>
> I tried to add the following ant task to my build and it did publish the build result. But the problem is that the features are publish without a category. I manually

I would assume you need to specify the IU for the category too.  Look in the content.xml/jar for an IU with a property 'org.eclipse.equinox.p2.type.category'.  For example, one of my repos has a generated category named '201102100915.Default':

   <unit id='201102100915.Default' version='1.0.0.7D7U3cBIFjh7kMYYMkYMO1ZH'>
     <properties size='3'>        
<property name='org.eclipse.equinox.p2.name' value='Uncategorized'/>
       <property name='org.eclipse.equinox.p2.description' value='Default category for otherwise uncategorized features'/>
       <property name='org.eclipse.equinox.p2.type.category' value='true'/>
     </properties>
     <provides size='1'>        
<provided namespace='org.eclipse.equinox.p2.iu' name='201102100915.Defau
lt' version='1.0.0.7D7U3cBIFjh7kMYYMkYMO1ZH'/>      </provides>
     <requires size='6'>
       <!-- .... -->

Brian.

--
Rescue your task list with Kizby!  Free 30 day trial with no obligations.
Visit kizby.com for details.

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


GIF image

GIF image


Back to the top