【问题标题】:Attaching Play's 2.2 source code to the application将 Play 的 2.2 源代码附加到应用程序
【发布时间】:2013-11-30 20:21:22
【问题描述】:

使用 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]            ^

命令的语法是否更新了?我该如何克服这个问题?

【问题讨论】:

    标签: playframework playframework-2.2


    【解决方案1】:

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

    play
    eclipse with-source=true
    

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

    play "eclipse with-source=true"
    

    【讨论】:

      猜你喜欢
      • 2016-11-26
      • 1970-01-01
      • 1970-01-01
      • 2013-09-29
      • 2014-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多