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?
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.
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.
Play supports the NetBeans, IntelliJ IDEA and Eclipse platforms.
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 .
play clean-all
See http://www.playframework.org/documentation/2.0/PlayConsole
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With