Home » Modeling » EMF » EMF and equinox
| |
Re: EMF and equinox [message #1707178 is a reply to message #1706457] |
Wed, 02 September 2015 20:20 |
Martin Tauber Messages: 122 Registered: July 2009 |
Senior Member |
|
|
Hi Ed,
i have not checked the source code, but if I use the eclipse "Run
Configurations" and
(1) deselect everything,
(2) then just select org.eclipse.emf.ecore and
(3) deselect the "Include Optional Dependencies ..." checkbox
(4) and then press "Add required Bundles"
org.eclipse.core.runtime is selected among others ...
also my bundle does not load since org.eclipse.emf.ecore fails to load
it's dependencies .... so to me it looks like id really depends on
org.ecliplse.core.runtime
i worked around it by creating my own bundle which includes only the jars
"org.eclipse.emf.common" and "org.eclipse.emf.ecore" with no dependencies
and exporting the packages i use ...
regards
Martin
Am .08.2015, 07:02 Uhr, schrieb Ed Merks <ed.merks@xxxxxxxx>:
> In this bugzilla we made changes so EMF should run on Felix, so I'm not
> sure why it wouldn't run without the core runtime, which is optional for
> the EMF core runtime.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=398741
>
> Yes, at development time, you'll need to compile against the core
> runtime (if you have plugin classes), but it should (maybe) work at
> runtime without that.
>
>
> On 26/08/2015 8:46 PM, Martin Tauber wrote:
>> Hi everybody,
>>
>> I would like to write an equinox based application using emf. So I
>> created my little plugin using my model and the generated emf (model)
>> code. This plugin is obviously dependent on org.eclipse.emf.ecore since
>> it uses EObject ... so far so good. If i now load my plugin in equinox,
>> it is not loaded since it is org.eclipse.emf.ecore requires
>> org.eclipse.core.runtime (and some 24 others). And these again require
>> another roundabout 50 plugins ....
>>
>> well this is just to much. besides I'm at the end getting errors of
>> plugins that I'm by far not interested.
>>
>> Isn't there a slim way of loading an emf dependent plugin in equinox?
>>
>> Thanks
>> Martin
>
--
Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/
|
|
|
Re: EMF and equinox [message #1707222 is a reply to message #1707178] |
Thu, 03 September 2015 07:48 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Martin,
Comments below.
On 02/09/2015 10:20 PM, Martin Tauber wrote:
> Hi Ed,
>
> i have not checked the source code, but if I use the eclipse "Run
> Configurations" and
> (1) deselect everything,
> (2) then just select org.eclipse.emf.ecore and
> (3) deselect the "Include Optional Dependencies ..." checkbox
> (4) and then press "Add required Bundles"
>
> org.eclipse.core.runtime is selected among others ...
A huge set of things is selected. I suspect it's taking into account
the requirements of the product or application you have selected on the
first page.
>
> also my bundle does not load since org.eclipse.emf.ecore fails to load
> it's dependencies .... so to me it looks like id really depends on
> org.ecliplse.core.runtime
In an Eclipse product/application launch, yes it needs the core
runtime. The plugin classes extend org.eclipse.core.runtime.Plugin so
this is definitely needed if any kind of bundle activators are needed.
>
> i worked around it by creating my own bundle which includes only the
> jars "org.eclipse.emf.common" and "org.eclipse.emf.ecore" with no
> dependencies and exporting the packages i use ...
>
> regards
> Martin
>
> Am .08.2015, 07:02 Uhr, schrieb Ed Merks <ed.merks@xxxxxxxx>:
>
>> In this bugzilla we made changes so EMF should run on Felix, so I'm
>> not sure why it wouldn't run without the core runtime, which is
>> optional for the EMF core runtime.
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=398741
>>
>> Yes, at development time, you'll need to compile against the core
>> runtime (if you have plugin classes), but it should (maybe) work at
>> runtime without that.
>>
>>
>> On 26/08/2015 8:46 PM, Martin Tauber wrote:
>>> Hi everybody,
>>>
>>> I would like to write an equinox based application using emf. So I
>>> created my little plugin using my model and the generated emf
>>> (model) code. This plugin is obviously dependent on
>>> org.eclipse.emf.ecore since it uses EObject ... so far so good. If i
>>> now load my plugin in equinox, it is not loaded since it is
>>> org.eclipse.emf.ecore requires org.eclipse.core.runtime (and some 24
>>> others). And these again require another roundabout 50 plugins ....
>>>
>>> well this is just to much. besides I'm at the end getting errors of
>>> plugins that I'm by far not interested.
>>>
>>> Isn't there a slim way of loading an emf dependent plugin in equinox?
>>>
>>> Thanks
>>> Martin
>>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: EMF and equinox [message #1707232 is a reply to message #1707178] |
Thu, 03 September 2015 08:06 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
You have to work quite hard to keep a standalone classpath under
control. You want nearly nothing, so start with nothing and add
libraries one at a time to resolve CNFEs.
Attached is the launch configuration that demonstrates that the
Ecore-based OCL JUnit tests can be run standalone.
No org.eclipse.core.runtime.
It only needs org.eclipse.osgi and that probably only for NLS.bind().
Regards
Ed Willink
On 02/09/2015 21:20, Martin Tauber wrote:
> Hi Ed,
>
> i have not checked the source code, but if I use the eclipse "Run
> Configurations" and
> (1) deselect everything,
> (2) then just select org.eclipse.emf.ecore and
> (3) deselect the "Include Optional Dependencies ..." checkbox
> (4) and then press "Add required Bundles"
>
> org.eclipse.core.runtime is selected among others ...
>
> also my bundle does not load since org.eclipse.emf.ecore fails to load
> it's dependencies .... so to me it looks like id really depends on
> org.ecliplse.core.runtime
>
> i worked around it by creating my own bundle which includes only the
> jars "org.eclipse.emf.common" and "org.eclipse.emf.ecore" with no
> dependencies and exporting the packages i use ...
>
> regards
> Martin
>
> Am .08.2015, 07:02 Uhr, schrieb Ed Merks <ed.merks@xxxxxxxx>:
>
>> In this bugzilla we made changes so EMF should run on Felix, so I'm
>> not sure why it wouldn't run without the core runtime, which is
>> optional for the EMF core runtime.
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=398741
>>
>> Yes, at development time, you'll need to compile against the core
>> runtime (if you have plugin classes), but it should (maybe) work at
>> runtime without that.
>>
>>
>> On 26/08/2015 8:46 PM, Martin Tauber wrote:
>>> Hi everybody,
>>>
>>> I would like to write an equinox based application using emf. So I
>>> created my little plugin using my model and the generated emf
>>> (model) code. This plugin is obviously dependent on
>>> org.eclipse.emf.ecore since it uses EObject ... so far so good. If i
>>> now load my plugin in equinox, it is not loaded since it is
>>> org.eclipse.emf.ecore requires org.eclipse.core.runtime (and some 24
>>> others). And these again require another roundabout 50 plugins ....
>>>
>>> well this is just to much. besides I'm at the end getting errors of
>>> plugins that I'm by far not interested.
>>>
>>> Isn't there a slim way of loading an emf dependent plugin in equinox?
>>>
>>> Thanks
>>> Martin
>>
>
>
|
|
| |
Goto Forum:
Current Time: Tue Apr 23 11:18:58 GMT 2024
Powered by FUDForum. Page generated in 0.04132 seconds
|