How to automatically add an update site in "Available Software" [message #121953] |
Sun, 30 November 2008 17:48  |
Eclipse User |
|
|
|
Is it possible to automatically add an update site to the list in
"Available Software"?
I have a feature available from a P2 repository that has a dependency on
another feature in a different P2 repository.
So, I added a reference to the second repository as a discovery site in my
feature.xml:
<url>
<update label="%updateLabel"
url="http://download.eclipse.org/tools/ajdt/34/update"/> <!-- My site -->
<discovery label="%eaUpdateLabel"
url=" http://download.eclipse.org/tools/ajdt/34/dev/equinox-aspect s"/>
<!-- Dependent site -->
</url>
I would expect that when trying to install the feature in my update site,
it would automatically check the features in the discovery site for
dependencies.
It doesn't.
In order to install my feature, it is necessary to have the second site in
the list of "Available Software". If it's not there (even if the site is
included in "Manage Sites...", my feature will not install.
Any ideas how to get around this?
thanks for your help,
--andrew
|
|
|
|
Re: How to automatically add an update site in "Available Software" [message #122106 is a reply to message #122093] |
Tue, 02 December 2008 12:21  |
Eclipse User |
|
|
|
The solution is to use the associateSitesURL argument in the site.xml .
Snjeza
Andrew Eisenberg wrote:
> OK. After a little more investigation, it seems that there is a line in
> the content.xml file that determines if a site is enabled or not. There
> is a references element in the xml:
>
> <references size='1'>
> <repository
> url=' http://download.eclipse.org/tools/ajdt/34/dev/equinox-aspect s'
> type='1' options='0'/>
> </references>
>
> If options is set to 0, then site is disabled. If set to 1, then enabled.
>
> It seems that if I manually edit the cached version of the content.xml
> for the AJDT update site, then I can install with no problems.
>
> How can I produce a content.xml with a discovery site automatically
> enabled?
>
|
|
|
Powered by
FUDForum. Page generated in 1.56122 seconds