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

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -