How can I do a verbose compile in Play Framework?

2019-02-09 21:21发布

问题:

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

回答1:

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.