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.

Björn Pollex
  • 75,346
  • 28
  • 201
  • 283
Anna
  • 233
  • 2
  • 8
  • possible duplicate of [How to analyze low-level OSGi problems during tycho test execution?](http://stackoverflow.com/questions/12784087/how-to-analyze-low-level-osgi-problems-during-tycho-test-execution) – Brad Werth Nov 22 '12 at 05:44
  • 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: -ea -Dosgi.clean=true -Ddebug=true -Dosgi.console.enable.builtin=true -console 1234 -noExit – Anna Nov 27 '12 at 14:22
  • Right on. Feel free to submit it as an answer, and accept it - that way it will stay out of the unanswered questions queue. – Brad Werth Nov 27 '12 at 16:30

1 Answers1

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>
Anna
  • 233
  • 2
  • 8
  • 1
    This approach did not work for me. I needed a breakpoint in Tycho Surefire plugin and the configuration mentioned here: http://stackoverflow.com/a/12784090/337621 – Gábor Lipták Feb 04 '14 at 10:29