开发者

Griffon command line arguments

开发者 https://www.devze.com 2023-02-03 10:27 出处:网络
How to use getStartupArgs() Since 0.9.1 it seems you can read the command line arguments issue #245 with the getStartupArgs() method (documentation)

How to use getStartupArgs()

Since 0.9.1 it seems you can read the command line arguments issue #245 with the getStartupArgs() method (documentation)

But I do know how to use it, I'开发者_如何学运维ve put it in in all the Griffon lifecycle, Controller, Service, and I get the exception

org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: [LifeCycle|Controller|Service].getStartupArgs() is applicable for argument types: () values: []
Caused by: groovy.lang.MissingMethodException: No signature of method: [LifeCycle|Controller|Service].getStartupArgs() is applicable for argument types: () values: [

]


app.getStartupArgs()

That's the way you can read the arguments

0

精彩评论

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