while running ```./gradlew run``` the program does...
# gradle
a
while running
Copy code
./gradlew run
the program doesnt wait for the input. I want to take in input from the stdin, hence i am using readLine(). Do we have to specify some args in build.gradle.kts?
v
Yes,
run
is a
JavaExec
typed task.
JavaExec
has a property
standardInput
which by default as documented is set to an empty stream. Set it to
<http://System.in|System.in>
and it should work.
👍 2
🙏 1
👏 2