在play文档中,我找到了描述如何将Play项目转换为Eclipse项目的链接(http://www.playframework.com/documentation/1.2.4/ide)。
我按照以下步骤操作,但Play不接受新创建的应用程序。
我正在使用:
我创建了一个播放应用
/play-2.2.1$ ./play new hello
_
_ __ | | __ _ _ _
| '_ \| |/ _' | || |
| __/|_|\____|\__ /
|_| |__/
play 2.2.1 built with Scala 2.10.2 (running Java 1.7.0_40), http://www.playframework.com
The new application will be created in /home/<user>/programming/play-2.2.1/hello
What is the application name? [hello]
>
Which template do you want to use for this new application?
1 - Create a simple Scala application
2 - Create a simple Java application
> 1
OK, application hello is created.
Have fun!
但是,play不接受hello作为应用程序
~/programming/play-2.2.1$ ./play eclipsify hello
_
_ __ | | __ _ _ _
| '_ \| |/ _' | || |
| __/|_|\____|\__ /
|_| |__/
play 2.2.1 built with Scala 2.10.2 (running Java 1.7.0_40), http://www.playframework.com
This is not a play application!
Use `play new` to create a new Play application in the current directory,
or go to an existing application and launch the development console using `play`.
You can also browse the complete documentation at http://www.playframework.com.
答案 0 :(得分:2)
我意识到您需要使用文档中提供的其他命令 - 我使用命令eclipse
和不 eclipsify
。
>>> cd <my_application>
>>> ../play eclipse <my_application>
上面的命令对我有用。
答案 1 :(得分:1)
您正在查看以前版本的Play的文档。您的版本的文档是http://www.playframework.com/documentation/2.2.1/IDE。
您需要使用的命令是eclipse
。它在2.0和2.1之间的某个时间发生了变化。