2013-11-15 60 views
1

在play文檔中,我找到了描述如何將Play項目轉換爲Eclipse項目的鏈接(http://www.playframework.com/documentation/1.2.4/ide)。如何將Play應用程序轉換爲Eclipse項目

我遵循以下步驟,但Play不接受新創建的應用程序。

  • 爲什麼Play不接受我的申請?

我使用:

  • 的Scala:Scala代碼亞軍版本2.9.2 - 版權所有2002-2011,LAMP/EPFL
  • 播放2.2.1

我創建播放應用程序

/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! 

然而,玩不接受爲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. 

回答

2

我意識到,你需要使用另一個命令比文檔中提供了 - 我用命令eclipseeclipsify

>>> cd <my_application> 
>>> ../play eclipse <my_application> 

上面的命令對我有用。

相關問題