https://kotlinlang.org logo
Title
n

napperley

08/14/2017, 12:46 AM
Is the Gradle Input Stream problem going to be fixed (https://discuss.gradle.org/t/how-can-i-execute-a-java-application-that-asks-for-user-input/3264)? Been driven up the wall by this issue. What is the fix when building a JAR?
g

gildor

08/14/2017, 1:11 AM
What do you want to achieve? Solution in this thread works for code, that run by JavaExec task. Probably, if you want get user input on Gradle invocation is possible, don’t know, but why do you want to do that? Maybe better to pass argument to
gradlew
n

napperley

08/14/2017, 2:01 AM
Discovered that the problem doesn't occur when building a JAR via the Shadow plugin, and running the resulting JAR via java.
g

gildor

08/14/2017, 2:30 AM
So, do you need user input inside your code?
Of course it’s not a case for jar runned by java manually, without gradle. But solution from your link should work for any
JavaExec
task, looks like it’s your case