I a trying to implement run configuration, but the problem is, that I have my own java library with run API, so I want to just start the process from code in new thread and attach System.out to show in the console.
I dont have a java.lang.Process or a comand to give to the ProcessHandler in CommandLineState#startProcess() . I was trying to implement my own ProcessHandler and in getProcessInput() method just return System.out, but it is writing the output to development Idea instance and not the one with my plugin running.
How should I accomplish it? Is there some plugin, where it is done this way? Not running a process from OS command line, but from code.
Thanks for any help!