运行Gradle应用程序时如何摆脱执行/进度栏? [英] How do I get rid of the Executing/Progress Bar when running a Gradle application?
本文介绍了运行Gradle应用程序时如何摆脱执行/进度栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试构建基于控制台的应用程序,但是无论何时运行
I am trying to build a console based application but whenver I run
./gradlew run
我得到了如下所示的进度条:
I get thr progress bar which looks like this:
<=========----> 75% EXECUTING [29s]
我是否可以删除此栏(该栏一直挂到应用程序结束)?还是有更好的方法用gradle编写控制台基础应用程序?
Is there anyway I can remove this bar (which hangs out until the application ends)? Or is there a better way to write console base applications with gradle?
版本为4.3.1
推荐答案
您可以使用console
命令行参数配置Gradle日志格式,如下所述:
You can configure the Gradle log format using console
command line parameter, as described here : https://docs.gradle.org/current/userguide/command_line_interface.html#rich_console
尝试:./gradlew run --console=plain
这篇关于运行Gradle应用程序时如何摆脱执行/进度栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文