Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Updating included feature either from parent site or its own site(how to define feature, udapte sites so that one can check updates on parent site URL and get updates for included feature)
Updating included feature either from parent site or its own site [message #686268] Tue, 21 June 2011 23:19 Go to next message
Aarati Khandekar is currently offline Aarati KhandekarFriend
Messages: 2
Registered: June 2011
Junior Member
down vote favorite


Following is sample of issue I am trying to resolve on a larger project

I have feature 1.xml as below:

<?xml version="1.0" encoding="UTF-8"?>
<feature
id="test1.feature"
label="test1.feature"
version="1.0.0.qualifier">

<description url="">
[Enter Feature Description here.]
</description>

<copyright url="">
[Enter Copyright Description here.]
</copyright>

<license url="">
[Enter License Description here.]
</license>

<url>
<update label="Test 1 Site" url="file:/C:/Users/ak/Documents/ToDelete/test1/"/>
<discovery label="New Test2 discovery site" url="file:/C:/Users/ak/Documents/ToDelete/test2/"/>
</url>

<includes
id="test2.feature"
version="0.0.0"
name="Test 2"
search-location="both"/>

<requires>
<import plugin="test2"/>
</requires>

<plugin
id="test1"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>

At same level for test1.feature I have p2.inf defined as below. Its defined so that we are allowed to update test2 feature. I got this info from google serach results.
equires.1.namespace = org.eclipse.equinox.p2.iu
requires.1.name = test2.feature.feature.group
requires.1.range = [1.0.0, 2.0.0)

I have defined test2.feature as below

<description url="">
[Enter Feature Description here.]
</description>

<copyright url="">
[Enter Copyright Description here.]
</copyright>

<license url="">
[Enter License Description here.]
</license>

<url>
<update url="file:/C:/Users/ak/Documents/ToDelete/test2/"/>
</url>

<plugin
id="test2"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>

Any me site looked as

<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/test1.feature_1.0.0.201106211458.jar" id="test1.feature" version="1.0.0.201106211458">
<category name="Test1"/>
</feature>
<category-def name="Test1" label="Test1 site"/>
</site>

With this setup, I notice is at start I can add a new update site as test1 - file:/C:/Users/ak/Documents/ToDelete/test1/ and deploy both test1 and test2 features without issue, I now update only test2 and upload its site contents at file:/C:/Users/ak/Documents/ToDelete/test2/.

I come to IDE and say check updates, I see no new updates are presented. IF i add file:/C:/Users/ak/Documents/ToDelete/test2/ manually to list of file and and say add with this, the new update is presented to download.

I do not want user to be needed to manually add included features update site, I want included feature updates to be downloaded either from test1 or test2 url location but by user just needing to select check updates on test1 url. Based on my understanding of various google searches, i have done the necessary setup by add update site url in each feature and by defining discovery url to test1 feature.

What am I doing wrong? What else needs to be done to have update sites added automatically to update sites list?

Re: Updating included feature either from parent site or its own site [message #686290 is a reply to message #686268] Wed, 22 June 2011 00:29 Go to previous message
Aarati Khandekar is currently offline Aarati KhandekarFriend
Messages: 2
Registered: June 2011
Junior Member
I was able to make some progress by adding instructions.configure=org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(l‌​ocation:file${#58}/C:/Users/ak/Documents/ToDelete/test2/,type:0,name:ujml update,enabled:true); \ org.eclipse.equinox.p2.touchpoint.eclipse.addRepository(location:file${#58}/C:/U‌​sers/ak/Documents/ToDelete/test2/,type:1,name:ujml update,enabled:true); This added test2 update url to available sites, but even after i put updated plugins to test2 , check updates is not pickign it up. What am I missing?
Previous Topic:errors occurred during the export operation
Next Topic:Eclipse just shuts down when using home made plugin
Goto Forum:
  


Current Time: Wed Apr 24 19:22:42 GMT 2024

Powered by FUDForum. Page generated in 0.03291 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top