使用Play 2.1.3,我可以使用附加Play的源代码$ play eclipse with-source=true
.但是现在,在迁移到Play 2.2.1之后,当我尝试运行该命令时,我得到以下错误.
$ play eclipse with-source=true [info] Loading project definition from C:\Play\dcid\project [info] Set current project to dcid (in build file:/C:/Play/dcid/) [info] About to create Eclipse project files for your project(s). [info] Successfully created Eclipse project files for project(s): [error] Expected ID character [error] Not a valid command: with-source [error] Expected project ID [error] Expected configuration [error] Expected ':' (if selecting a configuration) [error] Expected key [error] Not a valid key: with-source (similar: watch-sources, watchSources, sources) [error] with-source=true [error] ^
命令的语法是否已更新?我怎么能克服这个?
如果你在里面运行命令它应该工作play
,如下所示:
play eclipse with-source=true
但你不需要; 如果你还想在游戏外运行命令:
play "eclipse with-source=true"