unix - Log console output from a gradle script to file -
i want log console output gradle script log file:
gradle test 2>&1 | tee -a gradle.log
but gradle script prompts param user:
task test << { system.console().readline("enter:").tostring() }
as result, have nullpointerexception:
execution failed task ':test'. cannot invoke method readline() on null object
may know solution or workaround situation?
what about:
yes <desired input> | gradle test 2>&1 | tee -a gradle.log
yes
repeditively echos whatever it's argument stdout
Comments
Post a Comment