2016-01-20 60 views
0

我試圖在W8.1運行「包的HelloWorld」,我也得到:Grails的入門包的HelloWorld

grails> package helloworld 
| Error Caught exception Could not execute build using Gradle distribution 'http 
s://services.gradle.org/distributions/gradle-2.3-bin.zip'. 
Problem with provided build arguments: [-helloworld]. 
Unknown command-line option '-h'. 
Either it is not a valid build option or it is not supported in the target Gradl 
e version. 
Not all of the Gradle command line options are supported build arguments. 
Examples of supported build arguments: '--info', '-u', '-p'. 
Examples of unsupported build options: '--daemon', '-?', '-v'. 
Please find more information in the javadoc for the BuildLauncher class. (Use -- 
stacktrace to see the full trace) 

任何幫助,將不勝感激。

+0

你究竟在做什麼?如果你想產生戰爭嘗試'grails>彙編'也當你在grails控制檯與標籤的幫助下,你可以查看所有可用的命令。 – mehmood

回答

0

nvm,我覺得自己像個白癡。 ;-)

我跟在Getting Started的helloworld示例中,我以爲我應該在Grails交互式控制檯中添加一個動作。我需要做的是編輯上一步中創建的控制器模板腳本。我的壞,對此感到抱歉。

謝謝大家。