Community
Participate
Working Groups
I am working on my first module, one for doing Launch (and maybe some debug).
Great idea! In case you need some points to start with, the ease.ui module comes with some helper methods to create and run launch configurations. Now dedicated to EASE, these helpers might be easily reused for a dedicated module.
New Gerrit change created: https://git.eclipse.org/r/57359
New Gerrit change created: https://git.eclipse.org/r/57360
This sounds like it might be *exactly* what I'm after, even including killing the external program when the run/debug session ends. Very nice!
Gerrit change https://git.eclipse.org/r/57359 was merged to [master]. Commit: http://git.eclipse.org/c/ease/org.eclipse.ease.modules.git/commit/?id=276c4355c75e3d5619d9a35d6ae801d5af0ed84a
Gerrit change https://git.eclipse.org/r/57360 was merged to [master]. Commit: http://git.eclipse.org/c/ease/org.eclipse.ease.scripts.git/commit/?id=b7372b3688f64bc5f6ad9001c77932aa98104953
implemented, thanks for the commit! @Jan: Kill ing an external Process cannot be done with the launch directly. Eventually you could use runProcess from the Platform module to issue a kill command...
(In reply to Christian Pontesegger from comment #7) > @Jan: > > Kill ing an external Process cannot be done with the launch directly. > > Eventually you could use runProcess from the Platform module to issue a kill > command... However if you have launched the program with an External Tools Configuration launch, then you can terminate it. e.g.: myRunningExternalLaunch = launch("External Launch Configuration Name") // ... logic ... myRunningExternalLaunch.terminate() The example snippet provided in https://git.eclipse.org/c/ease/org.eclipse.ease.scripts.git/tree/JavaScript%20Snippets/Script%20helpers/Add%20to%20script%20locations.js shows an example of terminating a launch, that applies equally to external program launches.
Thanks for the hint. The correct link to the script is: https://git.eclipse.org/c/ease/org.eclipse.ease.scripts.git/tree/JavaScript%20Snippets/Launch%20Module%20Examples/03%20terminate%20server%20when%20client%20terminates.js