Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clean up Play-framework based project

After running a new Play-framework 2.0 based project, i failed to clean it - the generated staff persisted below,

 $ play new myapp
   > app name: myapp
   > template: java app

myapp/
├── app
│   ├── controllers
│   └── views
├── conf
├── project
└── public
    ├── images
    ├── javascripts
    └── stylesheets

$ cd myapp
$ play
  [myapp] run 12345

CtrlD

  [myapp] clean

myapp/
├── app
│   ├── controllers
│   └── views
├── conf
├── logs
├── project
│   ├── project
│   │   └── target
│   │       └── config-classes
│   └── target
│       ├── scala-2.9.1
│       │   └── sbt-0.11.2
│       │       ├── cache
│       │       │   ├── compile
│       │       │   └── update
│       │       └── classes
│       └── streams
│           ├── compile
│           │   ├── compile
│           │   │   └── $global
│           │   ├── compile-inputs
│           │   │   └── $global
│           │   ├── copy-resources
│           │   │   └── $global
│           │   ├── defined-sbt-plugins
│           │   │   └── $global
│           │   └── $global
│           │       └── $global
│           └── $global
│               ├── compilers
│               │   └── $global
│               ├── ivy-configuration
│               │   └── $global
│               ├── ivy-sbt
│               │   └── $global
│               ├── project-descriptors
│               │   └── $global
│               └── update
│                   └── $global
├── public
│   ├── images
│   ├── javascripts
│   └── stylesheets
└── target

How can i succeed in cleaning it up?

like image 528
sof Avatar asked Mar 23 '12 14:03

sof


People also ask

How do I run a play Framework project?

Generate configuration To debug, start your application with sbt -jvm-debug 9999 run and in Eclipse right-click on the project and select Debug As, Debug Configurations. In the Debug Configurations dialog, right-click on Remote Java Application and select New. Change Port to 9999 and click Apply.

How do I import a play framework project into IntelliJ?

Open an existing Play 2 project In the dialog that opens, locate your project and if it is an sbt project, select the build. sbt file and click Open. In the dialog that opens, click Open as Project. IntelliJ IDEA opens the project and loads all the necessary dependencies.

Which IDES can be used for play applications?

Play supports the NetBeans, IntelliJ IDEA and Eclipse platforms.

How do you set content type explicitly on play?

Changing the default Content-Type Will automatically set the Content-Type header to text/plain , while: JsonNode json = Json. toJson(object); Result jsonResult = ok(json); will set the Content-Type header to application/json .


1 Answers

play clean-all

See http://www.playframework.org/documentation/2.0/PlayConsole

like image 75
Dan Burton Avatar answered Nov 03 '22 02:11

Dan Burton