I want to do something along the lines of this:
echo "foobar" | ./gradlew run
I understand that the run
task calls JavaExec
which takes a standardInput
argument. But wasn't able to use it via the commandline.
Is it possible pass my piped input stream to the application?