[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] Is it possible to install a feature into an RCP app at build time?
- From: Trace Windham <twindham@xxxxxxxxx>
- Date: Wed, 16 May 2012 10:39:46 -0500
- Delivered-to: firstname.lastname@example.org
I've added my feature to the category.xml for my RCP product, but this didn't cause the feature to be pre installed after the build of the RCP product was finished.
My feature that I want to be pre installed is built completely independent from my RCP product. It has it's own parent pom.xml file and it's own category.xml file.
How does the category.xml file for my RCP product know where to find my feature that I want pre installed?
Here's what is in my category.xml file now that I've added my Feature to it.
<?xml version="1.0" encoding="UTF-8"?>
<feature url="" id="com.mydomain.myrcpapp.rcp.feature" version="1.1.7.qualifier">
<feature url="" id="com.mydomain.myotherfeature.feature" version="1.0.0.qualifier">
<category-def name="com.mydomain" label="Development Tools">
Eclipse based features provided by My Company's Software Development Group
I noticed that the attribute "url" was set to "features/com.mydomain.myotherfeature.feature_1.0.0.qualifier.jar", and I thought.
How is the RCP build going to find that? My other feature is built completely independently of the RCP build. When I ran my RCP build, the other feature still was not pre installed.
So I modified the RCP's category.xml by adding the url of my other feature's p2 repository and made it look like this,
<feature url="" href="http://mydomain.com/p2reposiotry/myotherfeature/features/com.mydomain.myotherfeature.feature_1.0.0.qualifier.jar">http://mydomain.com/p2reposiotry/myotherfeature/features/com.mydomain.myotherfeature.feature_1.0.0.qualifier.jar" id="com.mydomain.myotherfeature.feature" version="1.0.0.qualifier">
But, that didn't work either.
I think I'm still missing something here. Does Tycho have the ability to even do this?
Thanks again for your time, it is greatly appreciated.
On Wed, May 16, 2012 at 8:58 AM, Brian de Alwis <briandealwis@xxxxxxxxx>
On 16-May-2012, at 9:41 AM, Trace Windham wrote:You need to ensure the features are included in the category.xml so that they are pulled in and available for installation.
> Is there something else I need to do to get your proposed solution to work?
p2-dev mailing list