简体   繁体   English

如何在Play Framework中进行详细编译?

[英]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? 在Play框架2.0.8中使用Java可以进行详细的编译吗?

Currently I only see: 目前我只看到:

[info] Compiling 131 Scala sources and 10 Java sources to ... [info]编译131个Scala源和10个Java源代码到......

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. 播放包装sbt,因此您可以在播放控制台set logLevel in compile := Level.Debug使用sbt命令set logLevel in compile := Level.Debug来设置日志记录级别。 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. 我不确定细节,但我几乎可以保证路由编译器与大多数批量重新编译有关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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