OSGi console after running tycho tests
Asked Answered
C

1

4

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.

Capsize answered 20/11, 2012 at 12:42 Comment(3)
possible duplicate of How to analyze low-level OSGi problems during tycho test execution?Viperine
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>Capsize
Right on. Feel free to submit it as an answer, and accept it - that way it will stay out of the unanswered questions queue.Viperine
C
3

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>
Capsize answered 28/11, 2012 at 6:36 Comment(1)
This approach did not work for me. I needed a breakpoint in Tycho Surefire plugin and the configuration mentioned here: https://mcmap.net/q/1340253/-how-to-analyze-low-level-osgi-problems-during-tycho-test-executionHarbert

© 2022 - 2024 — McMap. All rights reserved.