简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM