気ままなつぶやき

おべんきょしたこととか

【playframework】2.1.3入れた

紆余曲折ありまして・・・
【playframework】2.0.4いれた - 気ままなつぶやき

playframework入れ直した。現時点の最新の2.1.3

アプリの作成

$ play new sampleApp
       _            _
 _ __ | | __ _ _  _| |
| '_ \| |/ _' | || |_|
|  __/|_|\____|\__ (_)
|_|            |__/

play! 2.1.3 (using Java 1.6.0_37 and Scala 2.10.0), http://www.playframework.org

The new application will be created in /Users/okuda_junko/Documents/workspace/eclipse/sampleApp

What is the application name? [sampleApp]
>

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 sampleApp is created.

Have fun!

eclipseの形に変換

$ cd sampleApp/
$ play
Getting org.scala-sbt sbt 0.12.2 ...
:: retrieving :: org.scala-sbt#boot-app
	confs: [default]
	40 artifacts copied, 0 already retrieved (8381kB/170ms)
[info] Loading project definition from /Users/okuda_junko/Documents/workspace/eclipse/sampleApp/project
[info] Set current project to sampleApp (in build file:/Users/okuda_junko/Documents/workspace/eclipse/sampleApp/)
       _            _
 _ __ | | __ _ _  _| |
| '_ \| |/ _' | || |_|
|  __/|_|\____|\__ (_)
|_|            |__/

play! 2.1.3 (using Java 1.6.0_37 and Scala 2.10.0), http://www.playframework.org

> Type "help play" or "license" for more information.
> Type "exit" or use Ctrl+D to leave this console.

[sampleApp] $ eclipse with-source=true

微妙に2.0.4と変換のコマンドがちがうのね

あとはeclipseからimportすればOK

f:id:pnsk:20130812234710p:plain