出于某种原因,我得到像这样的Gradle任务的状态。我知道这个任务必定会失败,但我也会得到一个成功的#34;信息。有什么想法我可以处理它,只收回失败的消息吗?
BUILD FAILED
Total time: 3.651 secs
BUILD SUCCESSFUL
Total time: 2 seconds
Command returned exit status....
11:12:13 AM: External task execution finished 'task123'.
或者像这样
BUILD SUCCESSFUL
Total time: 2.48 secs
BUILD SUCCESSFUL
Total time: 2 seconds
1:02:01 PM: External task execution finished 'clean'.