Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho seems to ignore our p2.inf file

Hi,

Just to give you the final conclusion of our problem; productname.p2.inf works like a charm right now.
The issue was completely outside from Tycho (duplication of sources :( ..)

Sorry for the noise.

Julien

-----Original Message-----
From: Julien DEHAUDT 
Sent: vendredi 30 octobre 2015 15:36
To: Tycho user list
Subject: RE: [tycho-user] Tycho seems to ignore our p2.inf file

Hi, 

Finally the only way I’ve found to get it working is to add such information directly into the .product :

<product …>
…
   <repositories>
      <repository location="http://xxxxx " enabled="true" />
      <repository location="file:/yyyyy" enabled="true" />
   </repositories>
</product>

No way by using either p2.inf or productname.p2.inf, don't know why.. but the above solution should be acceptable.

Thanks all,
Julien

From: jeffmaury@xxxxxxxxx [mailto:jeffmaury@xxxxxxxxx] On Behalf Of Jeff MAURY
Sent: jeudi 29 octobre 2015 18:15
To: Julien DEHAUDT
Cc: Tycho user list
Subject: Re: [tycho-user] Tycho seems to ignore our p2.inf file

BTW, I'm using the same instructions in my Tycho build product but I'm adding enabled=true:

instructions.configure=org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/eclipsec.exe); \
  org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/releases/luna,type:0,name:Luna,enabled:true); \
  org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/releases/luna,type:1,name:Luna,enabled:true); \
  org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/eclipse/updates/4.4,type:0,name:The Eclipse Project Updates,enabled:true); \
  org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/eclipse/updates/4.4,type:1,name:The Eclipse Project Updates,enabled:true); \
  org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/,type:0,name:Xtext,enabled:true); \
  org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:http${#58}//download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/,type:1,name:Xtext,enabled:true); \
  org.eclipse.equinox.p2.touchpoint.eclipse.setFrameworkDependentProperty(propName:org.eclipse.update.reconcile,propValue:false);
  
Jeff


On Thu, Oct 29, 2015 at 6:10 PM, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:
Seems the problem I had was fixed in 0.19.0: https://bugs.eclipse.org/bugs/show_bug.cgi?id=412002

Jeff

On Thu, Oct 29, 2015 at 4:45 PM, Julien DEHAUDT <julien.dehaudt@xxxxxx> wrote:
Sorry I forgot this main point..
This is the version 0.21.0

Julien

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Jeff MAURY
Sent: jeudi 29 octobre 2015 16:32
To: Tycho user list
Subject: Re: [tycho-user] Tycho seems to ignore our p2.inf file Which version of tycho ?
Jeff
Le 29 oct. 2015 15:54, "Julien DEHAUDT" <julien.dehaudt@xxxxxx> a écrit :
Hi,

We are facing an issue with our Tycho based build system since we try to enable the automatic update feature of our RCP product.
All works like a charm if exporting the product from the IDE; updates are successfully recognized and notified. Thing that not happen using Tycho.
I guess that the main issue comes from our p2.inf file (located close to the .product)  which seems not to be taken into account.
From the IDE export the "Available Software Sites" page is populated with the p2.inf content, whereas it is empty using Tycho.

Note that I tried to prefix the p2.inf using the product name, as described into the Wiki page https://wiki.eclipse.org/Tycho/eclipse-repository, but with no success too...

Is there any tips that are unknown from Google :) ?

Our p2.inf content:
instructions.configure=\
  addRepository(name:<APP-NAME> update-site,type:0,location:file${#58}/some-local-uri);\
  addRepository(name:<APP-NAME> update-site,type:1,location:file${#58}/some-local-uri);\
  addRepository(name:<APP-NAME> update-site,type:0,location:http${#58}//some-intranet-url);\
  addRepository(name:<APP-NAME> update-site,type:1,location:http${#58}//some-intranet-url);

Thanks,
Julien
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury




-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top