java-repl icon indicating copy to clipboard operation
java-repl copied to clipboard

Pipe File Into Runtime

Open 7fe opened this issue 8 years ago • 0 comments

Is this the recommended way to do something like this?

file

System.out.println("test");
System.exit(0);

and run on ubuntu

cat repltest.txt | java -jar build/libs/javarepl-dev.jar

Forgive there are not many examples on the main site.

7fe avatar Feb 11 '17 16:02 7fe