Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » set availible software update site while creating the product
icon5.gif  set availible software update site while creating the product [message #641214] Wed, 24 November 2010 10:03 Go to next message
Nico Stieler is currently offline Nico Stieler
Messages: 13
Registered: November 2010
Junior Member
Hello everybody,
we implemented a product based on RCP. We also created a update site.

Our problem is to add the update site when creating the product. Is it possible to add this, e.g. via some xml-file, the product or in the code?

Thanks for your help.

Nico
Re: set availible software update site while creating the product [message #641229 is a reply to message #641214] Wed, 24 November 2010 10:23 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael Pellaton
Messages: 289
Registered: July 2009
Senior Member
Hello

Your product contains a number of features - right? Did you configure
the update site on the features?

If you do so, the sites should AFAIK be added to the list of available
sites.

HTH
Michael
Re: set availible software update site while creating the product [message #641254 is a reply to message #641214] Wed, 24 November 2010 11:16 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In our product (built by p2) we have the following in the .product's p2.inf:

instructions.configure=\
addRepository(type:0,location:http${#58}//download.eclipse.o rg/eclipse/updates/3.6-I-builds,name:Eclipse
3.6 I-builds);\
addRepository(type:1,location:http${#58}//download.eclipse.o rg/eclipse/updates/3.6-I-builds,name:Eclipse
3.6 I-builds);
.....

This fills in the update sites for that product to use.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: set availible software update site while creating the product [message #641268 is a reply to message #641229] Wed, 24 November 2010 11:59 Go to previous messageGo to next message
Nico Stieler is currently offline Nico Stieler
Messages: 13
Registered: November 2010
Junior Member
Hello Michael,

Thanks so far Smile
We already tried to do that like this:

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.xxx.core.feature"
label="xxx Core"
version="2.3.3"
provider-name="xxx."
plugin="org.xxx.application"
image="pic.jpg">

<description url="http://somewhere.org/plugins/1">
...
</description>

<copyright>
...
</copyright>

<license url="http://www.eclipse.org/legal/epl-v10.html">
Eclipse Public License - v 1.0
...
</license>

<url>
<update label="Update Site" url="http://somewhere.org/plugins/1"/>
<discovery label="More Features" url="http://somewhere.org/plugins/1"/>
</url>

<plugin
id="org.xxx.pluginxxx"
download-size="0"
install-size="0"
version="0.0.0"/>

</feature>


in url > update, url > discovery and in description we defined the Update Site.

Would you do it like this?
This does not work for us. Sad

If not: I am very keen to know how you would like to do it.

Thanks a lot.

Kind Regards,
Nico
Re: set availible software update site while creating the product [message #641295 is a reply to message #641268] Wed, 24 November 2010 12:59 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael Pellaton
Messages: 289
Registered: July 2009
Senior Member
That was the way I was expecting it to work :-(

When installing features (not products) I use p2 touchpoints but I have
not done that so far for products --> see Paul Webster's reply to your
question. He might help here.

Michael
Re: set availible software update site while creating the product [message #642892 is a reply to message #641254] Fri, 03 December 2010 03:54 Go to previous messageGo to next message
Nico Stieler is currently offline Nico Stieler
Messages: 13
Registered: November 2010
Junior Member
Thanks a lot Paul.

That works fine.

Nico
Re: set availible software update site while creating the product [message #642893 is a reply to message #641254] Fri, 03 December 2010 03:57 Go to previous messageGo to next message
Nico Stieler is currently offline Nico Stieler
Messages: 13
Registered: November 2010
Junior Member
Hi Paul,

One more question:
can you explain me why I need type:0 and type:1?

Thanks in advance.

Best Regards,
Nico

[Updated on: Fri, 03 December 2010 03:58]

Report message to a moderator

Re: set availible software update site while creating the product [message #643301 is a reply to message #642893] Mon, 06 December 2010 07:52 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Nico Stieler wrote:
> Hi Paul,
>
> One more question:
> can you explain me why I need type:1 and type:2?

one of them in metadata repo (content) and the other is artifact repo
(artifacts). I don't know which is which :-)

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: set availible software update site while creating the product [message #643327 is a reply to message #643301] Mon, 06 December 2010 09:11 Go to previous message
Nico Stieler is currently offline Nico Stieler
Messages: 13
Registered: November 2010
Junior Member
Hi Paul,

thanks a lot Smile

Best regards,
Nico
Previous Topic:Differnt ways register ISelectionProvider
Next Topic:p2 director: Any success/failure tests?
Goto Forum:
  


Current Time: Wed Aug 20 18:42:55 EDT 2014

Powered by FUDForum. Page generated in 0.02159 seconds