2011-01-09 47 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()

這就是你可以閱讀