[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] List of installable units or log - using p2 director to automate Subclipse, M2eclipse, and M2eclipse Extra for OpenMRS developers

Two quick question, if you can help much apperciated.

1. I would like to set up an IU that depends on IU's at _other_
repositories. Thus, user adds _our_ repository, clicks on _our_ IU, and all
the IUs from other repositories that _need_ to be installed are installed.

I read all P2 wikis but could not find anything I could understand to be
relevant.
This seemed to be helpful:
http://wiki.eclipse.org/Equinox/p2/Repository_Association
but I did not really understand how to implement the scenario above in
practice. If there are any guides or working examples in the wild much
appreciated.

Currently, my solution is to make a GUI plug-in as below, which works, but I
feel like there must be a simpler solution:

http://old.nabble.com/file/p29718999/devstudio-simple.zip
devstudio-simple.zip 
http://old.nabble.com/file/p29718999/InstallAction.java InstallAction.java 

2. Thank you so much for your helpful hint about the installed IU
information location.

I have taken this information and made the following command;

./eclipse -nosplash -application org.eclipse.equinox.p2.director -repository
http://subclipse.tigris.org/update_1.6.x,http://m2eclipse.sonatype.org/sites/m2e/,http://m2eclipse.sonatype.org/sites/m2e-extras/
-installIU
org.maven.ide.eclipse,org.maven.ide.eclipse.scm,org.maven.ide.eclipse.subclipse,org.tigris.subversion.clientadapter,org.tigris.subversion.clientadapter.javahl,org.tigris.subversion.subclipse.feature.group
-profile epp.package.jee

This _does_ install those IUs, but _even if I add the eclipse 3.6 and helios
update_ repositories on the command line, I notice that this _does not_
upgrade org.eclipse IUs that a GUI install _does_.

In other words, this command, even with eclipse 3.6 and helios update
repositories added, does _not_ reproduce the GUI action of installing these
same IUs in terms of _upgrading org.eclipse dependencies_

Is there a command line switch I am missing to do this?

Thank you very much

Yours
Misha Koshelev


Pascal Rapicault-3 wrote:
> 
> A complete list of all the IUs that have been installed is available in
> the most recent profile file located in
> <install>/p2/org.eclipse.equinox.p2.engine/profileRegistry/<someName>/
> 
> In order to facilitate things for you users, you may want to create one IU
> that refers to all the elements you need.
> This way your end user only has one thing to install
> 
> On 2010-09-12, at 5:47 PM, misha680 wrote:
> 
>> 
>> Dear All:
>> 
>> I am trying to automate the install process for OpenMRS developers 
>> http://wiki.openmrs.org/display/docs/Step+by+Step+Installation+for+Developers
>> 
>> I have found a helpful reference here:
>> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html
>> 
>> And have created a command line:
>> ./eclipse -nosplash -application org.eclipse.equinox.p2.director
>> -repository
>> http://subclipse.tigris.org/update_1.6.x,http://m2eclipse.sonatype.org/sites/m2e/,http://m2eclipse.sonatype.org/sites/m2e-extras/
>> -installIU
>> org.maven.ide.eclipse,org.maven.ide.eclipse.scm,org.maven.ide.eclipse.subclipse,org.tigris.subversion.clientadapter,org.tigris.subversion.clientadapter.javahl,org.tigris.subversion.subclipse.core
>> 
>> That _seems_ to mirror my Eclipse install.
>> 
>> However, on further investigation, it seems that certain things are not
>> installed. Notably, all _features_ related to the application seem
>> completely missing under the features/ folder.
>> 
>> Is there a good way to _see a list of all installable units_ in Eclipse?
>> 
>> The logs seem to record _features_, there is a bundles.list file that
>> record
>> _bundles = plugins_,
>> but where can I see a log of installable units in Eclipse?
>> 
>> Thank you
>> Misha
>> -- 
>> View this message in context:
>> http://old.nabble.com/List-of-installable-units-or-log---using-p2-director-to-automate-Subclipse%2C-M2eclipse%2C-and-M2eclipse-Extra-for-OpenMRS-developers-tp29693317p29693317.html
>> Sent from the Equinox - Dev mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> equinox-dev mailing list
>> equinox-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
> 
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
> 
> 

-- 
View this message in context: http://old.nabble.com/List-of-installable-units-or-log---using-p2-director-to-automate-Subclipse%2C-M2eclipse%2C-and-M2eclipse-Extra-for-OpenMRS-developers-tp29693317p29718999.html
Sent from the Equinox - Dev mailing list archive at Nabble.com.