0

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.

enter image description here

enter image description here

Barbora
  • 921
  • 1
  • 6
  • 11

1 Answers1

0

Using > only redirects STDOUT from the console to the file. If you want to also redirect STDERR you will need to use 2>.

See windows or unix

eg:

gradlew assemble 1> a.txt 2>&1
lance-java
  • 25,497
  • 4
  • 59
  • 101