将Play的2.2源代码附加到应用程序

时间:2013-11-30 20:21:23

标签: playframework playframework-2.2

使用Play 2.1.3,我可以使用$ play eclipse with-source=true附加Play的源代码。但是现在,在迁移到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]            ^

命令的语法是否已更新?我怎么能克服这个?

1 个答案:

答案 0 :(得分:14)

如果您在play内运行命令,它应该可以工作,如下所示:

play
eclipse with-source=true

但你不需要;如果你还想在游戏外运行命令:

play "eclipse with-source=true"