运行测试后的OSGi控制台

运行测试后的OSGi控制台

本文介绍了运行测试后的OSGi控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经试过了$ $,我想知道有没有办法在eclipse中告诉osgi控制台不要退出? c $ c>< argLine> -Dosgi.noShutdown = true< / argLine> 和< appArgLine> -console -noExit< / appArgLine> ,但是我没有得到我想要的东西。

解决方案

我终于成功地通过在远程调试模式下启动了测试,进入OSGi控制台。然而,与上述解决方案不同,我不得不使用以下配置:

 < argLine> -ea -Dosgi.clean = true -Ddebug = true -Dosgi.console.enable.builtin = true< / argLine> 
< appArgLine> -console 1234 -noExit< / appArgLine>


I wonder is there any way to tell the osgi console in eclipse not to exit after running tests with tycho-surefire-plugin?

I have tried out <argLine>-Dosgi.noShutdown=true</argLine> and <appArgLine>-console -noExit</appArgLine>, but I do not get what I want.

解决方案

I finally succeeded in getting to the OSGi console by starting the tycho test in the remote debug mode. However in contrast to the above mentioned solution I had to use the following configuration:

<argLine>-ea -Dosgi.clean=true -Ddebug=true -Dosgi.console.enable.builtin=true</argLine>
<appArgLine>-console 1234 -noExit</appArgLine>

这篇关于运行测试后的OSGi控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 09:35