Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Unable to update installable featuresthat are declared in a .product file independent of updatingthe product

I am having the same problem described in this thread.  Is there a way to install features into a build after a product has been created with Tycho?  Of course we could use ant and p2 director to perform the install.  

Another question... is it possible to generate a repository site that contains the updated product, so that it can actually be updated including all of the dependent features?

On Fri, Oct 21, 2011 at 3:09 AM, Greg Babcock <greg.babcock@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
This did not work for me.

1.   I removed the a feature A from the .product dependencies and performed a build and verified that it was removed from the target repository, and the product.

2.  I added the feature A as requirement in the <product_id>.p2.inf file adjacent to the .product file and performed a build.  Feature A was once again installed in the repository, and installed in the product as a dependency of the product IU, and not at the root level as required to be independently updatable feature.

In summary, adding a feature to a p2.inf file as a requirement yields a result equivalent to including a feature in the .product file as a dependency.

GB

-----Original Message-----
From: Greg Babcock
Sent: Thursday, October 20, 2011 11:29 AM
To: 'Tycho user list'
Subject: RE: [tycho-user] Unable to update installable featuresthat are declared in a .product file independent of updatingthe product

If my reading on Andrews blog is correct, to get independently installable features I need to:

       1.  Remove the independently installable features from the .product file
       2.  Add a <product_id>.p2.inf to my project that specifies version requirements
       3.  Use ant to install the features into the product

GB

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Sievers, Jan
Sent: Thursday, October 20, 2011 11:10 AM
To: Tycho user list
Subject: Re: [tycho-user] Unable to update installable featuresthat are declared in a .product file independent of updatingthe product

oh, and you will need to name your product p2.inf file

<product_id>.p2.inf

, see https://issues.sonatype.org/browse/TYCHO-517

Regards,
Jan

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Sievers, Jan
Sent: Donnerstag, 20. Oktober 2011 17:05
To: Tycho user list
Subject: Re: [tycho-user] Unable to update installable features that are declared in a .product file independent of updating the product

I think this was discussed before [1].
[2] has some hints on how to achieve p2-updatable products with some p2.inf version range tweaking.

Regards,
Jan

[1] http://software.2206966.n2.nabble.com/Building-self-updateable-eclipse-product-application-td6023867.html
[2] http://aniefer.blogspot.com/2009/07/composing-and-updating-custom-eclipse.html



From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Greg Babcock
Sent: Donnerstag, 20. Oktober 2011 16:45
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Unable to update installable features that are declared in a .product file independent of updating the product

My RCP application consists of four installable features, along with a number of configuration files that are bundled as features.  When the application is built with the features defined as dependencies in the product file, p2 only provides the option of updating the product and not individual features. 

>From the p2 documentation it supports provisioning an entire product, or adding IUs to an existing product.  To build an the incrementally upgradable product it looks like installable features need to be removed from the .product file and added in after the product is built. 

Is my assessment correct, and is tycho capable of doing this?

Regards,

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



--
Greg Amerson
Liferay, Inc.
---
Spain Symposium
October 26-27, 2011
Register today: www.liferay.com/Spain2011


Back to the top