groovy grape verbose

倖福魔咒の 提交于 2019-11-29 02:36:58

问题


Is there a way to print Ivy output when using Groovy Grape.

when I use Grape, it's just hanging there till finishes downloading all dependencies. I would like to know what it's happening and what it's downloading.

Thanks,


回答1:


Looks like this might be in Groovy 1.7.6

http://jira.codehaus.org/browse/GROOVY-4014

i.e. -Dgroovy.grape.report.downloads=true in JAVA_OPTS or on the command line




回答2:


tim_yates answer is good but if you need to debug a problem with Grapes, then this might be useful:

-Divy.message.logger.level=4

source: http://theholyjava.wordpress.com/2012/04/02/groovy-grape-troubleshooting-failed-download/




回答3:


For full debugging, you need to use both of these settings exported via JAVA_OPTS when running in a Groovy script.

export JAVA_OPTS='-Divy.message.logger.level=4 -Dgroovy.grape.report.downloads=true'
./myScript.groovy



回答4:


windows set JAVA_OPTS="-Dgroovy.grape.report.downloads=true -Divy.message.logger.level=4 %JAVA_OPTS%" unix export JAVA_OPTS="-Dgroovy.grape.report.downloads=true -Divy.message.logger.level=4 $JAVA_OPTS"



来源:https://stackoverflow.com/questions/3722280/groovy-grape-verbose

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!