2011-01-09 51 views
0

如何使用getStartupArgs()格里芬的命令行参数

由于0.9.1似乎可以读取命令行参数issue #245与getStartupArgs()方法(documentation

但我知道如何使用它,我已经把它在所有格里芬生命周期控制器,服务,和我得到的异常

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: [ 

]

+0

我已经尝试了所有这个版本0.9.1a,0.9.2-β-2,0.9.2-β-3的参数的方式 – jjchiw 2011-01-09 00:51:31

回答

0

app.ge tStartupArgs()

这就是你可以阅读