Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I do a verbose compile in Play Framework?

In play framework 2.0.8 with Java is it possible to do a verbose compile?

Currently I only see:

[info] Compiling 131 Scala sources and 10 Java sources to ...

I'm trying to determine why so many files are recompiled when changing a controller.

Thanks in advance

like image 841
KirdApe Avatar asked Jun 09 '14 10:06

KirdApe


People also ask

How do I run a debug in play framework?

menu (compile your project first). To debug, start your application with activator -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 run Playframework?

You can run the created application and view the result in the default browser http://localhost:9000. To run a Play application: Create a new Run Configuration – From the main menu, select Run -> Edit Configurations. Click on the + to add a new configuration.

What is the default port for Play application?

Overriding configuration with system properties The default is to listen on port 9000 at the 0.0. 0.0 address (all addresses).


1 Answers

Play wraps sbt, so you could use the sbt command set logLevel in compile := Level.Debug within the play console to set the logging level. Source: Configure and use logging

Changing a controller could trigger the routes compiler, which would need reverse routes to be recompiled, and then potentially anything using those reverse routes as well. I'm not sure of the details, but I can almost guarantee the routes compiler is involved with most mass re-compiles.

like image 191
Michael Zajac Avatar answered Nov 14 '22 22:11

Michael Zajac