Question

Dans la documentation du jeu, j'ai trouvé le lien (http://www.playframework.com/documentation/1.2.4/ide) décrivant comment convertir un projet Play en projet Eclipse.

J'ai suivi les étapes suivantes mais Play n'accepte pas l'application nouvellement créée.

  • Pourquoi Play n'accepte-t-il pas ma candidature ?

J'utilise:

  • Échelle :Scala Code Runner version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL
  • Jouer 2.2.1

Je crée une application de jeu

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

Cependant, Play n'accepte pas Hello comme application.

~/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.
Était-ce utile?

La solution

Vous consultez la documentation d’une version précédente de Play.La documentation de votre version est http://www.playframework.com/documentation/2.2.1/IDE.

La commande que vous devez utiliser est eclipse.Cela a changé entre 2.0 et 2.1.

Il existe également un tutoriel sur le Site Web de l'EDI Scala

Autres conseils

J'ai réalisé que vous deviez utiliser une autre commande que celle fournie dans la documentation - j'ai utilisé la commande eclipse et pas eclipsify.

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

Les commandes ci-dessus ont fonctionné pour moi.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top