Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] p2 update question

Hi Sonja,

 

do you mean, you would like to create update sites referencing other update sites?

We had the same problem get this working with Tycho. Finally we ended up using the JBoss Tycho repository util plugins:

https://github.com/jbosstools/jbosstools-maven-plugins/tree/master/tycho-plugins/repository-utils

 

- Benjamin

 

Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Sonja Subicin
Gesendet: Dienstag, 10. September 2013 17:27
An: Tycho user list
Betreff: Re: [tycho-user] p2 update question

 

Hi there,

as already mentioned by Markward, we want to add updatable language features to our tycho-built product.

Following your advices, we have started to try out Andrew's approach by defining our features in the p2.inf file.
---> http://aniefer.blogspot.de/2009/07/composing-and-updating-custom-eclipse.html

 

We have the following setup now:
- a feature-based product named "example.product", containing the features:
    com.ourcompany.feature.application (here we have added a plugin called "com.ourcompany.client.i18n", containing some i18n specific code and default messages)
    com.ourcompany.feature.thirdparty
- "example.p2.inf" file

here we are specifying additional language features containing fragments. The above mentioned plugin "com.ourcompany.client.i18n" is the host plugin of these fragments.

The example.p2.inf file has the following content:

requires.0.namespace = com.ourcompany
requires.0.name = com.ourcompany.client.feature.i18n.de_CH.group
requires.0.range = [1.0.0, 1.2.0]

requires.1.namespace = com.ourcompany
requires.1.name = com.ourcompany.client.feature.i18n.de_DE.group
requires.1.range = [1.0.0, 1.2.0]

requires.2.namespace = com.ourcompany
requires.2.name = com.ourcompany.client.feature.i18n.en.group
requires.2.range = [1.0.0, 1.2.0]

instructions.configure=\
  addRepository(type:0,location:http${#58}//ourcompany.com/language-repository);\
  addRepository(type:1,location:http${#58}//ourcompany.com/language-repository);

- The specified repository provides a tycho build p2 repo containing the required features.
- We have added the p2.inf file to build.properties.
 
At first we were thinking that running the tycho product build would automatically install the feature. This seems not to be the case, as the features cannot be found.
We are wondering, if it is necessary to create an extra ant script to explicitly install the feature (like in Andrew's approach), or if there is a less complicated way of adding updatable features to our product.

As we are new to p2 provisioning, please excuse us if we are not seeing the obvious. Any help would be appreciated!

Greetings,

Sonja Alberts

 

 

 

Gesendet: Mittwoch, 04. September 2013 um 15:59 Uhr
Von: "Markward Schubert" <markward.schubert@xxxxxxxxx>
An: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Betreff: Re: [tycho-user] p2 update question

Thank you for the clarification!
I think this helped a lot.
 

Regards,

Markward


Back to the top