开发者

groovy grape verbose

开发者 https://www.devze.com 2023-01-16 20:52 出处:网络
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 i

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 i开发者_运维问答t's downloading.

Thanks,


Looks like this might be in Groovy 1.7.6

https://issues.apache.org/jira/browse/GROOVY-4014

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


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/


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


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"

0

精彩评论

暂无评论...
验证码 换一张
取 消