Console application with Java and gradle

前端 未结 4 1021
天涯浪人
天涯浪人 2020-11-30 04:40

I am writing a console application with Java and gradle. I am using the application plugin and have the required fields correctly configured in build.gradle.

4条回答
  •  甜味超标
    2020-11-30 05:07

    Per default the system.in of your gradle build is not wired up with the system.in of the run (JavaExec) task. You can do the following:

    run{
        standardInput = System.in
    }
    

提交回复
热议问题