Search code examples
eclipsesystemexit

Eclipse -- hook based on exit code?


A question similar to this, just for Eclipse.

Is it possible to define hooks which act based on the exit code of the program run within Eclipse? (E.g., restart the program if a specific exit code is observed).


Solution

  • For programs launched using the Eclipse launch manager (for example from the Run menu) the only way to follow their progress is to write an Eclipse plugin which uses a debug events listener to listen to the launch progress.