问题
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.
回答1:
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>
来源:https://stackoverflow.com/questions/13473452/osgi-console-after-running-tycho-tests