Capture stdout

Hello

First: I have seen https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000665150, but it does not solve my case.

I need to use a tool that has programmatical java access through an API, but still produces output on stdout (System.out). Is there a way to capture this output and display it to users in some tool window when I am not in contact with the code that calls System.out.print(...)?

The same tool has a CLI, so I could switch to CLI usage in order to capture the output more easily. But then I would need to know where to find the executable. The plugin I work on imports these executables through a maven dependency (so they are in a jar). I have been trying to find out how to find the path to such files, but to no avail. Is there something I have overlooked?

 
 
 
 
0

Please sign in to leave a comment.