|
Re: Installing features during runtime [message #1403730 is a reply to message #1403610] |
Fri, 25 July 2014 16:23 |
|
On 24/07/2014 17:02, Alex Kravets wrote:
> Hello,
>
> I am looking for a way to install features from my update site when
> product launches and specific conditions are met.
>
> I've looked at possibility of
> http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fp2_api_overview.htm
> and using DirectorApplication directly. Do I understand correctly that
> if I need to to create p2 repository? But how can I do that on the fly
> from remote update site?
> Using DirectorApplication I do:
>
> DirectorApplication app = new DirectorApplication();
> String[] args = new String[]{"-repository",
> "http://myRepo","-installIU", "myFeature.feature.feature.group",
> "-destination", "myDestination"};
> app.run(args);
>
>
> which seems to work, but I get into trouble during installation because
> of missing dependencies:
>
> requires 'bundle org.eclipse.core.runtime 0.0.0' but it could not be found
>
>
> Can anyone offer advice on how I should proceed? Is using
> DirectorApplication like that a correct way to go, even though it's in
> internal package?
Hi
as far as I know, when the director installs features it first computes
a plan and tries to solve all the dependencies; I think in your case the
remote update site does not provide all the requirements (that's quite
usual, that's why in Eclipse it's better to check "Contact all update
sites" when installing features from a remote update site).
You should add all the repositories in the string "http://myRepo"
separated by commas; I guess just putting the main Kepler, Luna (or
whatever Eclipse version you're targetting) should be enough.
Hope this helps
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
|
Powered by
FUDForum. Page generated in 0.19334 seconds