Intellij run config set input file

Is there anyway to set up an IntelliJ run config for a Java program, so that it runs as if I ran this in terminal:

java Uguu < file

How would I tell IntelliJ to put the

<
file part?
1 comment
Comment actions Permalink

It's not supported, vote for https://youtrack.jetbrains.com/issue/IDEA-88717 .

One can create a wrapper class that would interpret '< file' parameter, open the file for reading, then run your main class and send it the stream from the file, then run the wrapper class from IDEA run/debug configuration instead of your main class.

0

Please sign in to leave a comment.