如何在Play Framework中进行详细的编译? [英] How can I do a verbose compile in Play Framework?
问题描述
在Java播放框架2.0.8中,可以进行冗长的编译吗?
In play framework 2.0.8 with Java is it possible to do a verbose compile?
目前我只看到:
[info]将131个Scala源代码和10个Java源代码编译为...
[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.
预先感谢
推荐答案
播放会包装sbt,因此您可以在播放控制台中使用sbt命令set logLevel in compile := Level.Debug
来设置日志记录级别.来源:配置和使用日志记录
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.
这篇关于如何在Play Framework中进行详细的编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!