|
|
|
Re: How to define plugin start level in SWTBot run configuration (Spring DM) [message #548029 is a reply to message #547948] |
Tue, 20 July 2010 13:06 |
Pascal G Messages: 157 Registered: July 2009 |
Senior Member |
|
|
On 10-07-20 05:04 AM, Vlastimil Dolejs wrote:
> Hi,
> Problem is, that SWTBot run configuration ignores start level of bundles
> on plug-ins tab.
> I set start level for bundle org.springframework.osgi.extender to 1 and
> it starts with 4 (default).
>
> I've been elaborating this issue and found, that normal run config
> (eclipse application) generates config.ini with param
> osgi.bundles={bundles} where {bundles} is list of bundles selected on
> plug-ins tab with their start level.
> SWTBot run configuration generates config.ini which has allways param
> osgi.bundles set to:
> osgi.bundles=reference\:file\:D\:/apps/eclipse/eclipse
> 3.5.2/plugins/org.eclipse.equinox.common_3.5.1.R35x_v20090807-1100.jar@2\:start,reference\:file\:D\:/apps/eclipse/eclipse
> 3.5.2/plugins/org.eclipse.update.configurator_3.3.0.v20090312.jar@3\:start,reference\:file\:D\:/apps/eclipse/eclipse
> 3.5.2/plugins/org.eclipse.core.runtime_3.5.0.v20090525.jar@start
> If I check Use an existing config.ini file as a template and select
> template with osgi.bundles parameter copy-pasted from Eclipse
> Application run configuration then it works.
>
> So i think problem is with generation a config.ini file.
>
> Spring DM is not involved in problem. I just mentioned it as for Spring
> DM are start levels of bundles essential.
> Thanks
I'm not even sure that this might be SWTBot-related. You see, the SWTBot
run configuration is a clone of PDE's JUnit configuration. Could you try
to run your tests using this instead? There's not much difference,
probably the only thing different you should do is uncheck "Run in the
UI thread". If this still doesn't work, then it is most probably because
PDE's JUnit launcher doesn't handle plugins start level and you might
want to check with PDE/JUnit guys. If it works, well, we'll try and poke
around to see what's wrong ;)
Hope this helps
--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/
*Because performance matters.*
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03725 seconds