io redirection - Simulate input from stdin when running a program in intellij -


is there way configure command line args intellij stdin redirection?

something along lines of:

run | edit run configurations | script parameters

/shared/java/paf-rules.properties 2 < /shared/java/testdata.csv 

unfortunately, no - @ least not directly in run configurations.

the best can do, afaik, either to:

  • modify script / program run either no args (reads system.in) or filename argument (reads file)

  • make wrapper script / program acts in manner above.

hope helps,

vikingsteve


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -