Command is gradlew assembleQW >a.txt.
When success, the log is all in a.txt.
But when failure, the reason for the failure is printed in the console.


Command is gradlew assembleQW >a.txt.
When success, the log is all in a.txt.
But when failure, the reason for the failure is printed in the console.


 
    
     
    
    Using > only redirects STDOUT from the console to the file. If you want to also redirect STDERR you will need to use 2>. 
eg:
gradlew assemble 1> a.txt 2>&1
